mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 13:03:05 +01:00
OSX: Moved NSOpenGLContext creation to the main thread that created NSWindow. Fixes occasional GL_INVALID_FRAME_BUFFER_OPERATION error on DrawElements.
This commit is contained in:
@@ -15,8 +15,6 @@ namespace bgfx
|
||||
# include "glimports.h"
|
||||
# undef GL_IMPORT
|
||||
|
||||
extern bool hasContext();
|
||||
|
||||
void naclSwapCompleteCb(void* /*_data*/, int32_t /*_result*/);
|
||||
|
||||
PP_CompletionCallback naclSwapComplete =
|
||||
@@ -80,10 +78,7 @@ namespace bgfx
|
||||
s_ppapi.swap();
|
||||
}
|
||||
|
||||
if (hasContext() )
|
||||
{
|
||||
renderFrame();
|
||||
}
|
||||
renderFrame();
|
||||
}
|
||||
|
||||
static void GL_APIENTRY naclVertexAttribDivisor(GLuint _index, GLuint _divisor)
|
||||
|
||||
Reference in New Issue
Block a user