Skip to content

Commit

Permalink
GL3+: fix getClosestGLImageInternalFormat (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
niu2x authored Mar 17, 2024
1 parent 74d8e7c commit bb0d36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RenderSystems/GL3Plus/src/OgreGL3PlusPixelFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit bb0d36c

Please sign in to comment.