mirror of https://github.com/libsdl-org/SDL
Fixed building with SDL_VIDEO_OPENGL_WGL disabled (thanks @Please-just-dont!)
Fixes https://github.com/libsdl-org/SDL/issues/10330
This commit is contained in:
parent
78991bdb13
commit
f244f08165
|
@ -777,9 +777,9 @@ int WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_PropertiesI
|
||||||
/* The rest of this macro mess is for OpenGL or OpenGL ES windows */
|
/* The rest of this macro mess is for OpenGL or OpenGL ES windows */
|
||||||
#ifdef SDL_VIDEO_OPENGL_ES2
|
#ifdef SDL_VIDEO_OPENGL_ES2
|
||||||
if ((_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES ||
|
if ((_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_ES ||
|
||||||
SDL_GetHintBoolean(SDL_HINT_VIDEO_FORCE_EGL, SDL_FALSE)) &&
|
SDL_GetHintBoolean(SDL_HINT_VIDEO_FORCE_EGL, SDL_FALSE))
|
||||||
#ifdef SDL_VIDEO_OPENGL_WGL
|
#ifdef SDL_VIDEO_OPENGL_WGL
|
||||||
(!_this->gl_data || WIN_GL_UseEGL(_this))
|
&& (!_this->gl_data || WIN_GL_UseEGL(_this))
|
||||||
#endif /* SDL_VIDEO_OPENGL_WGL */
|
#endif /* SDL_VIDEO_OPENGL_WGL */
|
||||||
) {
|
) {
|
||||||
#ifdef SDL_VIDEO_OPENGL_EGL
|
#ifdef SDL_VIDEO_OPENGL_EGL
|
||||||
|
|
Loading…
Reference in New Issue