From 5b76b3978d792c92b23a691204b473209782476e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 1 Apr 2014 21:15:42 -0700 Subject: glamor: Compute supported GLSL version and save in screen private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This currently computes the GLSL version in a fairly naïve fashion, and leaves that in the screen private for other users. This will let us update the version computation in one place later on. v2: Drop an accidental rebase-squashed hunk (change by anholt). Signed-off-by: Keith Packard Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt --- glamor/glamor_priv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'glamor/glamor_priv.h') diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 4c305abfc..36f9b7108 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -205,6 +205,7 @@ typedef struct glamor_screen_private { Bool yInverted; unsigned int tick; enum glamor_gl_flavor gl_flavor; + int glsl_version; int has_pack_invert; int has_fbo_blit; int has_map_buffer_range; -- cgit v1.2.3