From: Brian Paul Date: Thu, 14 Aug 2008 21:44:09 +0000 (-0600) Subject: gallium: init default texture image to gray X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7b818d53a95b549bbff942a9cb91272e0799dd5;p=mesa.git gallium: init default texture image to gray --- 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);