mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
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
This commit is contained in:
parent
c9f43383a7
commit
f2e5b77104
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue