Fixed crash occuring when a vertex buffer is mapped in invalid OpenGL context.

This commit is contained in:
Maciej Suminski 2016-05-03 16:16:59 +02:00
parent a62d2b5412
commit 55976e39ef
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ void OPENGL_GAL::EndDrawing()
void OPENGL_GAL::BeginUpdate()
{
SetCurrent( *OPENGL_GAL::glContext );
cachedManager.Map();
}