i965: fix polygon culling bug when rendering to a texture/FBO
authorBrian Paul <brianp@vmware.com>
Fri, 16 Jan 2009 20:33:19 +0000 (13:33 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Jan 2009 20:33:19 +0000 (13:33 -0700)
commita61a1a8181f05e07de1c0bccad109f4ad529a298
tree38b8c85b04de5a7c7b9771aa6f43968c5a4ddc5f
parent345a08a77fa16f58ef956c896f1bf5f4cf118243
i965: fix polygon culling bug when rendering to a texture/FBO

Since we use an inverted viewport transformation for render to texture, that
inverts front/back polygon orientation.
Now glCullFace(GL_FRONT / GL_BACK) works correctly.
src/mesa/drivers/dri/i965/brw_sf_state.c