diff options
author | Brian Paul <[email protected]> | 2008-08-14 15:44:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-14 15:44:28 -0600 |
commit | a7b818d53a95b549bbff942a9cb91272e0799dd5 (patch) | |
tree | af364b3ae936b109e13fc6e5f870994e096a56c1 /src/mesa | |
parent | 8f6d9e12be0be086ca2aab0b56dff8d2181addd9 (diff) |
gallium: init default texture image to gray
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
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); |