OSDN Git Service

i915: Fix type of "specoffset" variable.
authorPaul Berry <stereotype441@gmail.com>
Sat, 11 Feb 2012 03:51:55 +0000 (19:51 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Feb 2012 22:48:20 +0000 (14:48 -0800)
commite55f2d97f61420f6004c60be4238799f7a35b440
tree809afedfa8090fd293c4a021a2dc0574a03289aa
parent6e09d3cff2e850b8fef44c4f7bd7397c78376f1d
i915: Fix type of "specoffset" variable.

Commit 2e5a1a2 (intel: Convert from GLboolean to 'bool' from
stdbool.h.) converted the "specoffset" local variable (in
intel_tris.c) from a GLboolean to a bool.  However, GLboolean was the
wrong type for specoffset--it should have been a GLuint (to match the
declaration of specoffset in struct intel_context).

This patch changes specoffset to the proper type.

Fixes piglit test general/two-sided-lighting-separate-specular.

This is a candidate for stable branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45917
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 6b0a07f9ce844a8a96e2583bd37ed8453bf151c6)
src/mesa/drivers/dri/i915/intel_tris.c