mirror of https://github.com/libsdl-org/SDL.git
haiku: check if the returned _SDL_GLView is null or not
This commit is contained in:
parent
dea99e54fd
commit
06eb10c518
|
|
@ -241,6 +241,9 @@ static bool HAIKU_SetRelativeMouseMode(bool enabled)
|
|||
|
||||
SDL_BWin *bewin = _ToBeWin(window);
|
||||
BGLView *_SDL_GLView = bewin->GetGLView();
|
||||
if (_SDL_GLView == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bewin->Lock();
|
||||
if (enabled)
|
||||
|
|
|
|||
Loading…
Reference in New Issue