haiku: check if the returned _SDL_GLView is null or not

This commit is contained in:
captain0xff authored and Sam Lantinga committed 2025-02-16 13:44:00 -08:00
1 parent dea99e54fd
commit 06eb10c518
1 file changed
+3
+3
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)