summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorDylan Noblesmith <[email protected]>2012-04-21 19:35:48 +0000
committerDylan Noblesmith <[email protected]>2012-04-29 11:18:31 +0000
commit8e90913e9f99ff3296a3c3da36e73cd2d4730269 (patch)
treef3be4afdbbbbb23678accac8602c87a9e657cc02 /src/mesa/main
parente4c97f1e607f857fb7f397f9e00f37c00ffff295 (diff)
mesa: require GL_MAX_SAMPLES >= 4 for GL 3.0
As noted in commit be4e46b21a60cfdc826bf89d1078df54966115b1, this was missing before. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/version.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 82cc54b44c4..607230b5e3e 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -124,6 +124,7 @@ compute_version(struct gl_context *ctx)
ctx->Extensions.EXT_texture_sRGB);
const GLboolean ver_3_0 = (ver_2_1 &&
ctx->Const.GLSLVersion >= 130 &&
+ ctx->Const.MaxSamples >= 4 &&
ctx->Extensions.ARB_color_buffer_float &&
ctx->Extensions.ARB_depth_buffer_float &&
ctx->Extensions.ARB_half_float_pixel &&