aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-11-15 16:46:36 +0100
committerErik Faye-Lund <[email protected]>2018-12-03 18:16:44 +0100
commit70bfd312875810e23962a70c9ba98c8295d6a3fd (patch)
treeb5fd3a3bb0f6d8e18eebe6e0788d61220b238bff /src/mesa/main/context.h
parent5109742e7be2ba8c53fafd14e895cc9f0a8dd10c (diff)
mesa/main: clean up integer texture check
This makes the logic a little bit easier to follow, and reduce a bit of repetition. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index d8a548f1b1b..d4fe774577e 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -337,6 +337,12 @@ _mesa_is_no_error_enabled(const struct gl_context *ctx)
}
+static inline bool
+_mesa_has_integer_textures(const struct gl_context *ctx)
+{
+ return _mesa_has_EXT_texture_integer(ctx) || _mesa_is_gles3(ctx);
+}
+
/**
* Checks if the context supports geometry shaders.
*/