mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
test against -1 for front/back attrib
This commit is contained in:
parent
c0dd02219d
commit
0940059f8b
1 changed files with 4 additions and 4 deletions
|
|
@ -78,12 +78,12 @@ static struct vertex_header *copy_bfc( struct twoside_stage *twoside,
|
|||
struct vertex_header *tmp = dup_vert( &twoside->stage, v, idx );
|
||||
const struct draw_context *draw = twoside->stage.draw;
|
||||
|
||||
if (draw->attrib_front0) {
|
||||
assert(draw->attrib_back0);
|
||||
if (draw->attrib_front0 != -1) {
|
||||
assert(draw->attrib_back0 != -1);
|
||||
copy_attrib(draw->attrib_front0, draw->attrib_back0, tmp);
|
||||
}
|
||||
if (draw->attrib_front1) {
|
||||
assert(draw->attrib_back1);
|
||||
if (draw->attrib_front1 != -1) {
|
||||
assert(draw->attrib_back1 != -1);
|
||||
copy_attrib(draw->attrib_front1, draw->attrib_back1, tmp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue