We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48fa0df commit 350b097Copy full SHA for 350b097
source/sdl4ogre/sdlwindowhelper.cpp
@@ -21,7 +21,7 @@ SDLWindowHelper::SDLWindowHelper (SDL_Window* window, int w, int h,
21
struct SDL_SysWMinfo wmInfo;
22
SDL_VERSION(&wmInfo.version);
23
24
- if (SDL_GetWindowWMInfo(mSDLWindow, &wmInfo) == -1)
+ if (!SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
25
throw std::runtime_error("Couldn't get WM Info!");
26
27
Ogre::String winHandle;
0 commit comments