mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04: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;
|
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…
x
Reference in New Issue
Block a user