summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-04-21 19:35:48 +0000
committerIan Romanick <ian.d.romanick@intel.com>2012-07-06 09:46:03 -0700
commit04c35a5dff6b936c4d62541dafb78fef8b7a3760 (patch)
treee6e3ee0b054deac6ea6eb77a8a4e4eafb3443990
parent3bcddd5e89a2fe4c4d275eacefd67e3c267942fd (diff)
downloadmesa-04c35a5dff6b936c4d62541dafb78fef8b7a3760.tar.gz
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 <kenneth@whitecape.org> (cherry picked from commit 8e90913e9f99ff3296a3c3da36e73cd2d4730269)
-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 fc6e17ce119..de08e81bf0f 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -125,6 +125,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 &&