mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- fixed: When requesting GL version 2.x, do not try to create a core profile context, because that can not support legacy features.
This commit is contained in:
parent
3389a5a74e
commit
7efae2c8f8
1 changed files with 3 additions and 5 deletions
|
@ -748,11 +748,9 @@ bool Win32GLVideo::InitHardware (HWND Window, int multisample)
|
||||||
}
|
}
|
||||||
|
|
||||||
int prof = WGL_CONTEXT_CORE_PROFILE_BIT_ARB;
|
int prof = WGL_CONTEXT_CORE_PROFILE_BIT_ARB;
|
||||||
const char *lm = Args->CheckValue("-buffermethod");
|
const char *version = Args->CheckValue("-glversion");
|
||||||
if (lm != NULL)
|
|
||||||
{
|
if (version != nullptr && strcmp(version, "3.0") < 0) prof = WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB;
|
||||||
if (!stricmp(lm, "clientarray")) prof = WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (; prof <= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; prof++)
|
for (; prof <= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; prof++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue