diff --git a/RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp b/RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp index c101f81a10c..f1f6c5d1e76 100644 --- a/RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp +++ b/RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp @@ -329,7 +329,7 @@ namespace Ogre { GLenum GL3PlusPixelUtil::getClosestGLImageInternalFormat(PixelFormat format) { GLenum GLformat = getGLImageInternalFormat(format); - return (format == GL_NONE ? GL_RGBA8 : GLformat); + return (GLformat == GL_NONE ? GL_RGBA8 : GLformat); }