summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 1e7a12c8a8..c0c866caf1 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -360,8 +360,9 @@ _mesa_has_shader_subroutine(const struct gl_context *ctx)
static inline GLboolean
_mesa_has_tessellation(const struct gl_context *ctx)
{
- return ctx->API == API_OPENGL_CORE &&
- ctx->Extensions.ARB_tessellation_shader;
+ return (ctx->API == API_OPENGL_CORE &&
+ ctx->Extensions.ARB_tessellation_shader) ||
+ _mesa_is_gles31(ctx);
}