mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
If GL_ARB_clip_control & GL_ARB_depth_clamp are available, reflect that in glinfo
git-svn-id: https://svn.eduke32.com/eduke32@7753 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
13615565fd
commit
2e75437262
4 changed files with 14 additions and 0 deletions
|
@ -117,6 +117,8 @@ struct glinfo_t {
|
||||||
char debugoutput;
|
char debugoutput;
|
||||||
char bufferstorage;
|
char bufferstorage;
|
||||||
char sync;
|
char sync;
|
||||||
|
char depthclamp;
|
||||||
|
char clipcontrol;
|
||||||
char dumped;
|
char dumped;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -285,6 +285,8 @@ struct glinfo_t glinfo =
|
||||||
0, // Debug Output
|
0, // Debug Output
|
||||||
0, // Buffer storage
|
0, // Buffer storage
|
||||||
0, // Sync
|
0, // Sync
|
||||||
|
0, // Depth Clamp
|
||||||
|
0, // Clip Control
|
||||||
0, // GL info dumped
|
0, // GL info dumped
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1350,6 +1350,8 @@ void sdlayer_setvideomode_opengl(void)
|
||||||
glinfo.debugoutput = !!Bstrstr(glinfo.extensions, "GL_ARB_debug_output");
|
glinfo.debugoutput = !!Bstrstr(glinfo.extensions, "GL_ARB_debug_output");
|
||||||
glinfo.bufferstorage = !!Bstrstr(glinfo.extensions, "GL_ARB_buffer_storage");
|
glinfo.bufferstorage = !!Bstrstr(glinfo.extensions, "GL_ARB_buffer_storage");
|
||||||
glinfo.sync = !!Bstrstr(glinfo.extensions, "GL_ARB_sync");
|
glinfo.sync = !!Bstrstr(glinfo.extensions, "GL_ARB_sync");
|
||||||
|
glinfo.depthclamp = !!Bstrstr(glinfo.extensions, "GL_ARB_depth_clamp");
|
||||||
|
glinfo.clipcontrol = !!Bstrstr(glinfo.extensions, "GL_ARB_clip_control");
|
||||||
|
|
||||||
if (Bstrstr(glinfo.extensions, "WGL_3DFX_gamma_control"))
|
if (Bstrstr(glinfo.extensions, "WGL_3DFX_gamma_control"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -2929,6 +2929,14 @@ static int32_t SetupOpenGL(int32_t width, int32_t height, int32_t bitspp)
|
||||||
{
|
{
|
||||||
glinfo.sync = 1;
|
glinfo.sync = 1;
|
||||||
}
|
}
|
||||||
|
else if (!Bstrcmp((char *)p2, "GL_ARB_depth_clamp"))
|
||||||
|
{
|
||||||
|
glinfo.depthclamp = 1;
|
||||||
|
}
|
||||||
|
else if (!Bstrcmp((char *)p2, "GL_ARB_clipcontrol"))
|
||||||
|
{
|
||||||
|
glinfo.clipcontrol = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Xfree(p);
|
Xfree(p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue