mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +00:00
Fixed uikit crash when GLES is disabled
Fixes https://github.com/libsdl-org/SDL/issues/11208
This commit is contained in:
@@ -257,11 +257,13 @@ void UIKit_HideWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
|||||||
|
|
||||||
void UIKit_RaiseWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
void UIKit_RaiseWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
{
|
{
|
||||||
|
#if defined(SDL_VIDEO_OPENGL_ES) || defined(SDL_VIDEO_OPENGL_ES2)
|
||||||
/* We don't currently offer a concept of "raising" the SDL window, since
|
/* We don't currently offer a concept of "raising" the SDL window, since
|
||||||
* we only allow one per display, in the iOS fashion.
|
* we only allow one per display, in the iOS fashion.
|
||||||
* However, we use this entry point to rebind the context to the view
|
* However, we use this entry point to rebind the context to the view
|
||||||
* during OnWindowRestored processing. */
|
* during OnWindowRestored processing. */
|
||||||
_this->GL_MakeCurrent(_this, _this->current_glwin, _this->current_glctx);
|
_this->GL_MakeCurrent(_this, _this->current_glwin, _this->current_glctx);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void UIKit_UpdateWindowBorder(SDL_VideoDevice *_this, SDL_Window *window)
|
static void UIKit_UpdateWindowBorder(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
|
Reference in New Issue
Block a user