projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tgsi: add info fields for fragcoord origin, center, etc
[mesa.git]
/
src
/
gallium
/
auxiliary
/
draw
/
draw_pipe_twoside.c
diff --git
a/src/gallium/auxiliary/draw/draw_pipe_twoside.c
b/src/gallium/auxiliary/draw/draw_pipe_twoside.c
index 808b2fb0b58611a1d2fc7013a2ff4c83d1ea8621..9a3f3fee625c793b513761b5d185eb7c8e7ff1b1 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pipe_twoside.c
+++ b/
src/gallium/auxiliary/draw/draw_pipe_twoside.c
@@
-177,9
+177,6
@@
struct draw_stage *draw_twoside_stage( struct draw_context *draw )
if (twoside == NULL)
goto fail;
if (twoside == NULL)
goto fail;
- if (!draw_alloc_temp_verts( &twoside->stage, 3 ))
- goto fail;
-
twoside->stage.draw = draw;
twoside->stage.name = "twoside";
twoside->stage.next = NULL;
twoside->stage.draw = draw;
twoside->stage.name = "twoside";
twoside->stage.next = NULL;
@@
-190,6
+187,9
@@
struct draw_stage *draw_twoside_stage( struct draw_context *draw )
twoside->stage.reset_stipple_counter = twoside_reset_stipple_counter;
twoside->stage.destroy = twoside_destroy;
twoside->stage.reset_stipple_counter = twoside_reset_stipple_counter;
twoside->stage.destroy = twoside_destroy;
+ if (!draw_alloc_temp_verts( &twoside->stage, 3 ))
+ goto fail;
+
return &twoside->stage;
fail:
return &twoside->stage;
fail: