From 79b08deb10a7f351783be432d758a41246c63b4a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 9 Mar 2018 14:28:55 +1000 Subject: [PATCH] shader: use require instead of enable for shader extensions Signed-off-by: Dave Airlie --- src/vrend_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index f3b245a..fd38478 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -2247,9 +2247,9 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr) else STRCAT_WITH_RET(glsl_hdr, "#version 130\n"); if (ctx->prog_type == TGSI_PROCESSOR_VERTEX && ctx->cfg->use_explicit_locations) - STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_explicit_attrib_location : enable\n"); + STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_explicit_attrib_location : require\n"); if (ctx->prog_type == TGSI_PROCESSOR_FRAGMENT && fs_emit_layout(ctx)) - STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_fragment_coord_conventions : enable\n"); + STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_fragment_coord_conventions : require\n"); if (ctx->glsl_ver_required < 140 && ctx->uses_sampler_rect) STRCAT_WITH_RET(glsl_hdr, "#extension GL_ARB_texture_rectangle : require\n"); if (ctx->uses_cube_array)