Skip to content

fix GLES2PixelUtil::getClosestGLImageInternalFormat#531

Open
niu2x wants to merge 1 commit intoOGRECave:masterfrom
niu2x:bugfix/fix_getClosestGLImageInternalFormat
Open

fix GLES2PixelUtil::getClosestGLImageInternalFormat#531
niu2x wants to merge 1 commit intoOGRECave:masterfrom
niu2x:bugfix/fix_getClosestGLImageInternalFormat

Conversation

@niu2x
Copy link
Copy Markdown

@niu2x niu2x commented Jul 8, 2025

Issue: Incorrect Variable Type Comparison

The original code incorrectly compares variables of different types:

  • It checks format == GL_NONE.
    • format is of type PixelFormat (an application-defined enum or type).
    • GL_NONE is an OpenGL constant of type GLenum.

This is not elegant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant