From af287cf4525edc5c507a67e3454b1d1bff5a12e4 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 7 Aug 2013 00:56:37 +0000 Subject: [PATCH] Revert "Silence FBO initialization failure message on Intel HD 4000 by moving the glCheckFramebufferStatusEXT() call to below the glBindFramebufferEXT() call. The error returned on HD 4000 previously was something to do with the framebuffer being incomplete, and this seems to fix it, so hopefully it's right." This reverts commit 9a2617eb263e53a348e10c82bf1ba58feed65afc. git-svn-id: https://svn.eduke32.com/eduke32@3995 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index e447ebd9c..e7d4ac6f7 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -6016,12 +6016,14 @@ 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); - - 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); + } + + bglBindTexture(prrts[i].target, 0); + bglBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); i++; }