mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-24 02:50:20 +00:00
GL/ContextWGL: Check for ES2 context extension before creating
This commit is contained in:
parent
aeee649700
commit
9c9e2bbe27
@ -298,6 +298,13 @@ bool ContextWGL::CreateVersionContext(const Version& version, HGLRC share_contex
|
||||
}
|
||||
else if (version.profile == Profile::ES)
|
||||
{
|
||||
if ((version.major_version >= 2 && !GLAD_WGL_EXT_create_context_es2_profile) ||
|
||||
(version.major_version < 2 && !GLAD_WGL_EXT_create_context_es_profile))
|
||||
{
|
||||
Log_ErrorPrint("WGL_EXT_create_context_es_profile not supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
const int attribs[] = {
|
||||
WGL_CONTEXT_PROFILE_MASK_ARB,
|
||||
((version.major_version >= 2) ? WGL_CONTEXT_ES2_PROFILE_BIT_EXT : WGL_CONTEXT_ES_PROFILE_BIT_EXT),
|
||||
|
Loading…
x
Reference in New Issue
Block a user