intel: Fix copy-and-paste bug setting gl_constants::MaxSamples
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 30 Nov 2012 22:29:49 +0000 (14:29 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 5 Jan 2013 01:39:05 +0000 (17:39 -0800)
gl_constants::MaxSamples is an integer, so setting it to 1.0 is just
silly.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c

index b95972f8e9d83206ed385d00c2eb71951987ba58..f3f99836e9bd27416c0928f8c898d02681fd5bd3 100644 (file)
@@ -681,7 +681,7 @@ intelInitContext(struct intel_context *intel,
    ctx->Const.MaxPointSizeAA = 3.0;
    ctx->Const.PointSizeGranularity = 1.0;
 
-   ctx->Const.MaxSamples = 1.0;
+   ctx->Const.MaxSamples = 1;
 
    if (intel->gen >= 6)
       ctx->Const.MaxClipPlanes = 8;