haiku: check if the returned _SDL_GLView is null or not

This commit is contained in:
captain0xff
2025-02-17 01:17:13 +05:30
committed by Sam Lantinga
parent dea99e54fd
commit 06eb10c518

View File

@@ -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)