i915: Use the current drawbuffer's depth for polygon offset scale.
authorEric Anholt <eric@anholt.net>
Wed, 12 Jun 2013 03:24:41 +0000 (20:24 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 08:07:11 +0000 (01:07 -0700)
commitdba46831b0887a3f76ad011a9653ed9d2fff570e
treeb27d35f622c464e73cd4cd08b17ba22db46c1df8
parentc31aee99f35440a7bf4a9a5fda49fff6719ed33d
i915: Use the current drawbuffer's depth for polygon offset scale.

There's no reason to care about the window system visual's depth for
handling polygon offset in an FBO, and it could only lead to pain.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/intel_tris.c