diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index e7d4ac6f7..e447ebd9c 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -6016,15 +6016,13 @@ static void polymer_initrendertargets(int32_t count) bglReadBuffer(GL_NONE); } bglFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, prrts[i].target, prrts[i].z, 0); - - if (bglCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) - { - OSD_Printf("PR : FBO #%d initialization failed.\n", i); - } - + bglBindTexture(prrts[i].target, 0); bglBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); + if (bglCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT) + OSD_Printf("PR : FBO #%d initialization failed.\n", i); + i++; } }