Mesa (gallium-clip-state): draw: initalize pt.user.planes in draw_init
Marek Olšák
mareko at kemper.freedesktop.org
Thu Dec 29 00:34:22 UTC 2011
Module: Mesa
Branch: gallium-clip-state
Commit: 6243a8246997f8d2fcc69ab741a2c2dea080ff11
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6243a8246997f8d2fcc69ab741a2c2dea080ff11
Author: Marek Olšák <maraeo at gmail.com>
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]);
}
More information about the mesa-commit
mailing list