diff options
author | Erik Faye-Lund <[email protected]> | 2018-11-15 17:19:44 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-12-03 18:16:44 +0100 |
commit | 59690bf0a31300febafd84868781990db0fa215a (patch) | |
tree | a74358dd349631750f91de905ed0c288550fa0a5 /src/mesa/main/context.h | |
parent | 83db9d3e3a6db6ea21a8c09637a133baf9b4ecac (diff) |
mesa/main: do not allow EXT_packed_float enums before gles3
EXT_packed_float isn't supported on OpenGL ES, we shouldn't allow
these enums there, before OpenGL ES 3.0 which also introduce support
for these enums.
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 14f9a6b8987..84dbcb748c9 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -355,6 +355,12 @@ _mesa_has_float_depth_buffer(const struct gl_context *ctx) return _mesa_has_ARB_depth_buffer_float(ctx) || _mesa_is_gles3(ctx); } +static inline bool +_mesa_has_packed_float(const struct gl_context *ctx) +{ + return _mesa_has_EXT_packed_float(ctx) || _mesa_is_gles3(ctx); +} + /** * Checks if the context supports geometry shaders. */ |