OpenGL2: Don't bind null framebuffers when not using framebuffers.

This commit is contained in:
SmileTheory committed 2016-12-07 14:13:29 -08:00
1 parent c68e471430
commit 730207817e
2 files changed
+9 -1

No files matched your search

+6
View File
@@ -230,6 +230,12 @@ FBO_Bind
*/
void FBO_Bind(FBO_t * fbo)
{
if (!glRefConfig.framebufferObject)
{
ri.Printf(PRINT_WARNING, "FBO_Bind() called without framebuffers enabled!\n");
return;
}
if (glState.currentFBO == fbo)
return;