summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-14 15:44:09 -0600
committerBrian Paul <[email protected]>2008-08-14 15:44:28 -0600
commita7b818d53a95b549bbff942a9cb91272e0799dd5 (patch)
treeaf364b3ae936b109e13fc6e5f870994e096a56c1 /src/mesa/state_tracker
parent8f6d9e12be0be086ca2aab0b56dff8d2181addd9 (diff)
gallium: init default texture image to gray
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index f291531f81c..cf194a937fc 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1475,6 +1475,9 @@ st_get_default_texture(struct st_context *st)
struct gl_texture_object *texObj;
struct gl_texture_image *texImg;
+ /* init image to gray */
+ memset(pixels, 127, sizeof(pixels));
+
texObj = st->ctx->Driver.NewTextureObject(st->ctx, 0, target);
texImg = _mesa_get_tex_image(st->ctx, texObj, target, 0);