Fix always false comparison

SDL_GetWindowWMInfo result of type SDL_bool (SDL_TRUE = 1 or
SDL_FALSE = 0) should not be compared to -1.
actorid
Emanuel Guevel 12 years ago
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…
Cancel
Save