This commit is contained in:
Branimir Karadžić
2016-10-09 05:03:00 -07:00
parent 8b4ac9d440
commit ab5ec281ec
2 changed files with 3 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ namespace bgfx { namespace gl
[glContext makeCurrentContext];
GLint interval = 0;
[glContext setValues:&interval forParameter:NSOpenGLCPSwapInterval];
// When initializing NSOpenGLView programatically (as we are), this sometimes doesn't
// get hooked up properly (especially when there are existing window elements). This ensures
// we are valid. Otherwise, you'll probably get a GL_INVALID_FRAMEBUFFER_OPERATION when