st: remove comp_byte parameter to st_texture_create()

We can determine if the texture is compressed by checking the format.
This commit is contained in:
Brian Paul
2009-04-09 14:48:21 -06:00
parent 1ad2484f03
commit f122015674
6 changed files with 9 additions and 20 deletions

View File

@@ -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.