summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 f291531f81..cf194a937f 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);