mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00: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);
|
||||
BGLView *_SDL_GLView = bewin->GetGLView();
|
||||
if (_SDL_GLView == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bewin->Lock();
|
||||
if (enabled)
|
||||
|
||||
Reference in New Issue
Block a user