diff --git a/README.md b/README.md index 87edf281d..91fd26ba4 100644 --- a/README.md +++ b/README.md @@ -575,6 +575,11 @@ with examples: genie --with-sdl vs2012 +**NOTE** Special care is necessary to make custom windowing to work with +multithreaded renderer. Each platform has rules about where renderer can be and +how multithreading interacts with context/device. To disable multithreaded +render use `BGFX_CONFIG_MULTITHREDED=0` preprocessor define. + Tools ----- diff --git a/include/bgfxplatform.h b/include/bgfxplatform.h index 1e073de83..8544e8eec 100755 --- a/include/bgfxplatform.h +++ b/include/bgfxplatform.h @@ -163,7 +163,7 @@ namespace bgfx # elif BX_PLATFORM_WINDOWS HWND hwnd = glfwGetWin32Window(_window); winSetHwnd(hwnd); -# endif BX_PLATFORM_WINDOWS +# endif // BX_PLATFORM_WINDOWS } } // namespace bgfx diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 777ea7028..e1ed15431 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2669,6 +2669,7 @@ namespace bgfx { namespace gl GLENUM(GL_RENDERBUFFER); GLENUM(GL_INVALID_ENUM); + GLENUM(GL_INVALID_FRAMEBUFFER_OPERATION); GLENUM(GL_INVALID_VALUE); GLENUM(GL_INVALID_OPERATION); GLENUM(GL_OUT_OF_MEMORY);