diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/glformats.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 7506c238232..ea73068d025 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -2312,7 +2312,9 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) } } - if (_mesa_has_ARB_ES2_compatibility(ctx) || _mesa_is_gles(ctx)) { + if (_mesa_has_ARB_ES2_compatibility(ctx) || + _mesa_has_OES_framebuffer_object(ctx) || + ctx->API == API_OPENGLES2) { switch (internalFormat) { case GL_RGB565: return GL_RGB; |