Branimir Karadžić 10 years ago
parent
commit
b2c8c45b02
3 changed files with 7 additions and 1 deletions
  1. 5 0
      README.md
  2. 1 1
      include/bgfxplatform.h
  3. 1 0
      src/renderer_gl.cpp

+ 5 - 0
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
 -----
 

+ 1 - 1
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

+ 1 - 0
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);