mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 23:32:02 +00:00
- check the proper command line option for rejecting a core profile.
This commit is contained in:
parent
97bed58d7d
commit
8b5c741358
1 changed files with 6 additions and 2 deletions
|
@ -747,8 +747,12 @@ typedef const GLubyte * (APIENTRY *PFNGLGETSTRINGIPROC)(GLenum, GLuint);
|
|||
|
||||
bool Win32GLVideo::checkCoreUsability()
|
||||
{
|
||||
// if we explicitly want to disable 4.x features this must fail.
|
||||
if (Args->CheckParm("-gl3")) return false;
|
||||
const char *version = Args->CheckValue("-glversion");
|
||||
if (version != NULL)
|
||||
{
|
||||
if (strtod(version, NULL) < 4.0) return false;
|
||||
}
|
||||
if (Args->CheckParm("-noshader")) return false;
|
||||
|
||||
// GL 4.4 implies GL_ARB_buffer_storage
|
||||
if (strcmp((char*)glGetString(GL_VERSION), "4.4") >= 0) return true;
|
||||
|
|
Loading…
Reference in a new issue