diff options
author | Roland Scheidegger <[email protected]> | 2018-01-27 01:12:52 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-01-30 01:28:47 +0100 |
commit | 09dc4f9012b12c51972e32db653f507448b29490 (patch) | |
tree | c29b9ff1649fa3513b49441b39d19100bcd7bfe9 /src/mesa/main/formatquery.c | |
parent | e7ecc5e1600a9463f3f2fff9a9cdaa35c2f68c04 (diff) |
mesa: remove misleading gles checks for formatquery
Testing for gles there is just confusing - this is about target being
supported, if it was valid at all was already determined earlier
(in _legal_parameters). It didn't make sense at all in any case, since
it would only have said false there for gles for 2d but not 2d arrays etc.
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/mesa/main/formatquery.c')
-rw-r--r-- | src/mesa/main/formatquery.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c index 61f798c88fb..9174fb6b276 100644 --- a/src/mesa/main/formatquery.c +++ b/src/mesa/main/formatquery.c @@ -392,14 +392,12 @@ _is_target_supported(struct gl_context *ctx, GLenum target) * implementation the "unsupported" answer should be given. * This is not an error." * - * For OpenGL ES, queries can only be used with GL_RENDERBUFFER or MS. + * Note that legality of targets has already been verified. */ switch(target){ case GL_TEXTURE_1D: case GL_TEXTURE_2D: case GL_TEXTURE_3D: - if (!_mesa_is_desktop_gl(ctx)) - return false; break; case GL_TEXTURE_1D_ARRAY: |