diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-09 14:48:21 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-09 15:02:47 -0600 |
commit | f12201567463c7aeb9b76c32f000d577a82e7f92 (patch) | |
tree | 03ef21a3adc29833e6c811824d9178a9007493be /src/mesa/state_tracker/st_cb_bitmap.c | |
parent | 1ad2484f03cbe9ae6bd4ebe50d6894e570d65952 (diff) | |
download | external_mesa3d-f12201567463c7aeb9b76c32f000d577a82e7f92.zip external_mesa3d-f12201567463c7aeb9b76c32f000d577a82e7f92.tar.gz external_mesa3d-f12201567463c7aeb9b76c32f000d577a82e7f92.tar.bz2 |
st: remove comp_byte parameter to st_texture_create()
We can determine if the texture is compressed by checking the format.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_bitmap.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 2d547dd..3b2ad00 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -330,7 +330,7 @@ make_bitmap_texture(GLcontext *ctx, GLsizei width, GLsizei height, * Create texture to hold bitmap pattern. */ pt = st_texture_create(ctx->st, PIPE_TEXTURE_2D, ctx->st->bitmap.tex_format, - 0, width, height, 1, 0, + 0, width, height, 1, PIPE_TEXTURE_USAGE_SAMPLER); if (!pt) { _mesa_unmap_bitmap_pbo(ctx, unpack); @@ -579,8 +579,7 @@ reset_cache(struct st_context *st) cache->texture = st_texture_create(st, PIPE_TEXTURE_2D, st->bitmap.tex_format, 0, BITMAP_CACHE_WIDTH, BITMAP_CACHE_HEIGHT, - 1, 0, - PIPE_TEXTURE_USAGE_SAMPLER); + 1, PIPE_TEXTURE_USAGE_SAMPLER); /* Map the texture transfer. * Subsequent glBitmap calls will write into the texture image. |