summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-11-16 11:43:00 +0100
committerErik Faye-Lund <[email protected]>2018-12-03 18:16:44 +0100
commit2e753b77ddb0854d455c3cae826ae4412a64c3eb (patch)
treef4af0fd4563b46b8afb81a662b935d5e6b2ab410 /src
parent1373d117c2e5d3a2a7056ee150a5704f54d3dac7 (diff)
mesa/main: clean up OES_texture_float_linear check
Using the _mesa_has_FOO_bar helpers is generally more safe and should generally be prefered over checking driver-caps like this code did, because the _mesa_has_FOO_bar helpers also verify the API type and version. This shouldn't have any practical effect here, as this function only gets called for OpenGL ES 3.x right now. But if this was to change in the future, this makes the function behave a lot more predictable. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index a4db1ed16d4..c5ade2dc0e0 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -3853,7 +3853,7 @@ _mesa_is_es3_texture_filterable(const struct gl_context *ctx,
* internal formats to base internal formats ... and use cases ...'')
* for the R32F, RG32F, RGB32F, and RGBA32F formats."
*/
- return ctx->Extensions.OES_texture_float_linear;
+ return _mesa_has_OES_texture_float_linear(ctx);
default:
return false;
}