Before we were doing RGBA4 on GLES3 only, but as of GLES2 2.0.22 it should
be RGBA4 as well. Fixes DEQP
functional.state_query.rbo.renderbuffer_internal_format.
Tested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
* specs. If the context is not current, we cannot determine the
* API, so default to GL_RGBA.
*/
- if (ctx && _mesa_is_gles3(ctx)) {
+ if (ctx && _mesa_is_gles(ctx)) {
rb->InternalFormat = GL_RGBA4;
} else {
rb->InternalFormat = GL_RGBA;