diff options
author | Erik Faye-Lund <[email protected]> | 2018-11-15 18:40:26 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-12-03 18:16:44 +0100 |
commit | 5109742e7be2ba8c53fafd14e895cc9f0a8dd10c (patch) | |
tree | 64371cb692a1fb788f806ddc6d20e7514305450b /src | |
parent | 2e753b77ddb0854d455c3cae826ae4412a64c3eb (diff) |
mesa/main: clean up ES2_compatibility check
This makes the logic a little bit easier to follow; this is *either*
about ES2 compatibility *or* about gles. GL_RGB565 was added already in
OpenGL ES 1.0.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/glformats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index c5ade2dc0e0..4bd2f9d7e23 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -2325,7 +2325,7 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) } } - if (ctx->Extensions.ARB_ES2_compatibility) { + if (_mesa_has_ARB_ES2_compatibility(ctx) || _mesa_is_gles(ctx)) { switch (internalFormat) { case GL_RGB565: return GL_RGB; |