mesa: require GL_MAX_SAMPLES >= 4 for GL 3.0
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 21 Apr 2012 19:35:48 +0000 (19:35 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sun, 29 Apr 2012 11:18:31 +0000 (11:18 +0000)
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>
src/mesa/main/version.c

index 82cc54b44c4ed766fe9b4c284023015ea1bd754f..607230b5e3ecbab17417dbab1fccc6a9035e64fe 100644 (file)
@@ -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 &&