projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbed2e4
)
[965] Fully initialize the texture surface key data (padding around GLboolean)
author
Eric Anholt
<eric@anholt.net>
Sun, 16 Dec 2007 20:09:22 +0000
(12:09 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sun, 16 Dec 2007 20:09:22 +0000
(12:09 -0800)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 048e098cfb21603a35911c55a87c92d609991360..f940cea4cd16732b135f8af2faa71a5dae1a5da0 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@
-203,6
+203,7
@@
brw_update_texture_surface( GLcontext *ctx, GLuint unit )
struct gl_texture_image *firstImage = tObj->Image[0][intelObj->firstLevel];
struct brw_wm_surface_key key;
+ memset(&key, 0, sizeof(key));
key.target = tObj->Target;
key.format = firstImage->TexFormat->MesaFormat;
key.bo = intelObj->mt->region->buffer;