[Mesa-dev] [PATCH 3/3] intel: Fix copy-and-paste bug setting gl_constants::MaxSamples

Chris Forbes chrisf at ijw.co.nz
Tue Dec 4 10:37:27 PST 2012


Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

On Tue, Dec 4, 2012 at 6:31 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> gl_constants::MaxSamples is an integer, so setting it to 1.0 is just
> silly.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/drivers/dri/intel/intel_context.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
> index 15b77b2..507cd31 100644
> --- a/src/mesa/drivers/dri/intel/intel_context.c
> +++ b/src/mesa/drivers/dri/intel/intel_context.c
> @@ -680,7 +680,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;
> --
> 1.7.11.7
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list