i965g: Fix texture creation

This commit is contained in:
Jakob Bornecrantz 2010-02-28 16:28:44 +00:00
parent 54f9c509a1
commit 79a86d312d
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ static struct pipe_texture *brw_texture_create( struct pipe_screen *screen,
tex->ss.ss0.mipmap_layout_mode = BRW_SURFACE_MIPMAPLAYOUT_BELOW;
tex->ss.ss0.surface_type = translate_tex_target(tex->base.target);
format = translate_tex_target(tex->base.format);
format = translate_tex_format(tex->base.format);
assert(format != BRW_SURFACEFORMAT_INVALID);
tex->ss.ss0.surface_format = format;