From f2e5b77104058dea82ba7058ed7023946fd5bb45 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 7 Aug 2013 14:29:22 +0000 Subject: [PATCH] Enable ATI FBO color attachment workaround for Intel as well. Fixes some HD4000 issues. git-svn-id: https://svn.eduke32.com/eduke32@3997 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/winlayer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/winlayer.c b/polymer/eduke32/build/src/winlayer.c index fb674652c..3b2ea9146 100644 --- a/polymer/eduke32/build/src/winlayer.c +++ b/polymer/eduke32/build/src/winlayer.c @@ -2771,6 +2771,8 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp) if (!Bstrcmp(glinfo.vendor,"Microsoft Corporation")) err = 1; else if (!Bstrcmp(glinfo.vendor,"SiS")) err = 1; else if (!Bstrcmp(glinfo.vendor,"3Dfx Interactive Inc.")) err = 1; + else if (!Bstrcmp(glinfo.vendor, "Intel")) + pr_ati_fboworkaround = 1; else { if (!Bstrcmp(glinfo.vendor,"ATI Technologies Inc.")) @@ -2778,7 +2780,6 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp) winlayer_have_ATI = 1; #ifdef POLYMER pr_ati_fboworkaround = 1; - initprintf("Enabling ATI FBO color attachment workaround.\n"); #endif if (Bstrstr(glinfo.renderer,"Radeon X1")) { @@ -2799,6 +2800,9 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp) #endif } + if (pr_ati_fboworkaround) + initprintf("Enabling Intel/ATI FBO color attachment workaround.\n"); + if (!forcegl && err) { OSD_Printf("Unsupported OpenGL driver detected. GL modes will be unavailable. Use -forcegl to override.\n");