gallium/draw: fix two side handling
authorDave Airlie <airlied@redhat.com>
Mon, 19 Dec 2011 15:57:50 +0000 (15:57 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Dec 2011 19:07:35 +0000 (19:07 +0000)
commitf4ab1783b390cd8ff7f4b1e7ba9fc15893e2d69c
treea93eddca25b415cd6f75e9eca4e97132a9084837
parentd334a0fb8cbb368c337858b16cb567a28a35f688
gallium/draw: fix two side handling

The code didn't handle the case where front wasn't specified in the vertex
shader outputs, but back was.

In that case we were doing a copy from back to non-existant front,
this code checks we have existant front/backs and only does the copy when
they both exist.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_twoside.c