forked from teamnwah/openmw-tes3coop
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
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
|
||||||
struct SDL_SysWMinfo wmInfo;
|
struct SDL_SysWMinfo wmInfo;
|
||||||
SDL_VERSION(&wmInfo.version);
|
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!");
|
throw std::runtime_error("Couldn't get WM Info!");
|
||||||
|
|
||||||
Ogre::String winHandle;
|
Ogre::String winHandle;
|
||||||
|
|
Loading…
Reference in a new issue