mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
haiku: check if the returned _SDL_GLView is null or not
This commit is contained in:
committed by
Sam Lantinga
parent
dea99e54fd
commit
06eb10c518
@@ -241,6 +241,9 @@ static bool HAIKU_SetRelativeMouseMode(bool enabled)
|
|||||||
|
|
||||||
SDL_BWin *bewin = _ToBeWin(window);
|
SDL_BWin *bewin = _ToBeWin(window);
|
||||||
BGLView *_SDL_GLView = bewin->GetGLView();
|
BGLView *_SDL_GLView = bewin->GetGLView();
|
||||||
|
if (_SDL_GLView == NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bewin->Lock();
|
bewin->Lock();
|
||||||
if (enabled)
|
if (enabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user