diff --git a/src/common/gl/context_wgl.cpp b/src/common/gl/context_wgl.cpp index 7dcde8f5e..857084e78 100644 --- a/src/common/gl/context_wgl.cpp +++ b/src/common/gl/context_wgl.cpp @@ -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),