projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
draw: handle some out of memory conditions
[mesa.git]
/
src
/
gallium
/
auxiliary
/
draw
/
draw_pipe_wide_point.c
diff --git
a/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
b/src/gallium/auxiliary/draw/draw_pipe_wide_point.c
index a86fe19586ceb5488d5e92b8f718d9f596605cbf..3e6e5389950779a0b543faf377864ea6c2dc278e 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pipe_wide_point.c
+++ b/
src/gallium/auxiliary/draw/draw_pipe_wide_point.c
@@
-324,9
+324,6
@@
struct draw_stage *draw_wide_point_stage( struct draw_context *draw )
if (wide == NULL)
goto fail;
if (wide == NULL)
goto fail;
- if (!draw_alloc_temp_verts( &wide->stage, 4 ))
- goto fail;
-
wide->stage.draw = draw;
wide->stage.name = "wide-point";
wide->stage.next = NULL;
wide->stage.draw = draw;
wide->stage.name = "wide-point";
wide->stage.next = NULL;
@@
-337,6
+334,9
@@
struct draw_stage *draw_wide_point_stage( struct draw_context *draw )
wide->stage.reset_stipple_counter = widepoint_reset_stipple_counter;
wide->stage.destroy = widepoint_destroy;
wide->stage.reset_stipple_counter = widepoint_reset_stipple_counter;
wide->stage.destroy = widepoint_destroy;
+ if (!draw_alloc_temp_verts( &wide->stage, 4 ))
+ goto fail;
+
return &wide->stage;
fail:
return &wide->stage;
fail: