From e7459a04b1d7b6061ab1f05318b14aa0f84ef8ad Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Wed, 24 Jul 2013 02:16:23 +0200 Subject: [PATCH] Fix always false comparison SDL_GetWindowWMInfo result of type SDL_bool (SDL_TRUE = 1 or SDL_FALSE = 0) should not be compared to -1. --- libs/openengine/ogre/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openengine/ogre/renderer.cpp b/libs/openengine/ogre/renderer.cpp index dbfdfaaa5..de090a0f1 100644 --- a/libs/openengine/ogre/renderer.cpp +++ b/libs/openengine/ogre/renderer.cpp @@ -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;