summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-05-01 10:21:36 -0700
committerEric Anholt <[email protected]>2017-10-10 09:31:29 -0700
commit45f34d733b22c9aabc13bd6a553833fd73f534b3 (patch)
tree3ab08644b4960b7ecdab2209ffc01c82874306bc /src/mesa/main
parentc16a7443e9999a80bc1e87134297f96f1216d702 (diff)
mesa: Set new renderbuffers to RGBA4 on all GLES contexts.
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 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/renderbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c
index 5046f9d5f42..925001a76a3 100644
--- a/src/mesa/main/renderbuffer.c
+++ b/src/mesa/main/renderbuffer.c
@@ -66,7 +66,7 @@ _mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name)
* 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;