Module: Mesa Branch: gallium-clip-state Commit: 6243a8246997f8d2fcc69ab741a2c2dea080ff11 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6243a8246997f8d2fcc69ab741a2c2dea080ff11
Author: Marek Olšák <[email protected]> Date: Thu Dec 29 01:32:51 2011 +0100 draw: initalize pt.user.planes in draw_init This fixes a crash in glean/fpexceptions. --- src/gallium/auxiliary/draw/draw_context.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 0d5c93b..e205933 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -130,7 +130,7 @@ boolean draw_init(struct draw_context *draw) draw->clip_xy = TRUE; draw->clip_z = TRUE; - + draw->pt.user.planes = (float (*) [DRAW_TOTAL_CLIP_PLANES][4]) &(draw->plane[0]); draw->reduced_prim = ~0; /* != any of PIPE_PRIM_x */ @@ -288,7 +288,6 @@ void draw_set_clip_state( struct draw_context *draw, draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE ); memcpy(&draw->plane[6], clip->ucp, sizeof(clip->ucp)); - draw->pt.user.planes = (float (*) [DRAW_TOTAL_CLIP_PLANES][4]) &(draw->plane[0]); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
