Skip to content

Fix expected error codes for compressed texture updates#3773

Merged
lexaknyazev merged 1 commit into
KhronosGroup:mainfrom
lexaknyazev:compressedTexSubImage-error
Apr 29, 2026
Merged

Fix expected error codes for compressed texture updates#3773
lexaknyazev merged 1 commit into
KhronosGroup:mainfrom
lexaknyazev:compressedTexSubImage-error

Conversation

@lexaknyazev
Copy link
Copy Markdown
Member

Either error code is acceptable because:

When a command could potentially generate several different errors ..., the GL implementation may choose to generate any of the applicable errors.

Generic rule:

If a command that requires an enumerated value is passed a symbolic constant that is not one of those specified as allowable for that command, an INVALID_ENUM error is generated.

Command-specific rule:

An INVALID_OPERATION error is generated if format does not match the internal format of the texture image being modified...

@lexaknyazev lexaknyazev requested a review from kenrussell April 29, 2026 09:57
Copy link
Copy Markdown
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@lexaknyazev lexaknyazev merged commit 7b242d0 into KhronosGroup:main Apr 29, 2026
2 checks passed
@lexaknyazev lexaknyazev deleted the compressedTexSubImage-error branch April 29, 2026 20:05
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.

2 participants