From 55976e39ef58dcc9f5efe225cbdaebb6ed9dd89f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 3 May 2016 16:16:59 +0200 Subject: [PATCH] Fixed crash occuring when a vertex buffer is mapped in invalid OpenGL context. --- common/gal/opengl/opengl_gal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index cb658c7a1a..c498535eb8 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -302,6 +302,7 @@ void OPENGL_GAL::EndDrawing() void OPENGL_GAL::BeginUpdate() { + SetCurrent( *OPENGL_GAL::glContext ); cachedManager.Map(); }