Skip to content
Snippets Groups Projects
Commit b83a83dc authored by Matt Turner's avatar Matt Turner Committed by Jordan Justen
Browse files

mesa: Return INVALID_ENUM for glReadPixels(..., GL_DEPTH_*, ...) on ES 3


I'm not sure if this is the correct fix. The
_mesa_es_error_check_format_and_type function (used above in the ES 1
and 2 cases) was originally added for glTexImage checking and allows
GL_DEPTH_STENCIL/GL_UNSIGNED_INT_24_8 combinations. Using it in ES 3
causes other tests to regress.

Fixes es3conform's packed_depth_stencil_error test.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: default avatarAnuj Phogat <anuj.phogat@gmail.com>
parent 19864a4b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment