From 8664ae74f67541adee17945f89e7bd02b9297551 Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Sun, 20 May 2012 10:26:56 +0400 Subject: [PATCH] st/mesa: expose "force_glsl_extensions_warn" option --- src/mesa/state_tracker/st_extensions.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 953155f..c1af083 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -39,6 +39,7 @@ #include "st_context.h" #include "st_extensions.h" +#include "util/u_debug.h" static int _min(int a, int b) { @@ -632,4 +633,7 @@ void st_init_extensions(struct st_context *st) if (ctx->Const.MaxDualSourceDrawBuffers > 0) ctx->Extensions.ARB_blend_func_extended = GL_TRUE; + + if (debug_get_bool_option("force_glsl_extensions_warn", false)) + ctx->Const.ForceGLSLExtensionsWarn = GL_TRUE; } -- 1.7.10.2