From bb0d36cf9edda755dc4d578cc712239a299ddd02 Mon Sep 17 00:00:00 2001 From: niu2x Date: Mon, 18 Mar 2024 05:20:37 +0800 Subject: [PATCH] GL3+: fix getClosestGLImageInternalFormat (#3065) --- RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }