mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Fix always false comparison
SDL_GetWindowWMInfo result of type SDL_bool (SDL_TRUE = 1 or SDL_FALSE = 0) should not be compared to -1.
This commit is contained in:
parent
3fbbbdc64b
commit
e7459a04b1
@ -293,7 +293,7 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
|
||||
struct SDL_SysWMinfo wmInfo;
|
||||
SDL_VERSION(&wmInfo.version);
|
||||
|
||||
if(-1 == SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
|
||||
if(SDL_FALSE == SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
|
||||
throw std::runtime_error("Couldn't get WM Info!");
|
||||
|
||||
Ogre::String winHandle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user