gallium: set template.target = PIPE_TEXTURE_2D

This commit is contained in:
Brian Paul 2008-05-02 11:12:15 -06:00
parent b2021e7c06
commit 99df379b2c
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
strb->Base.Height = height;
init_renderbuffer_bits(strb, template.format);
template.target = PIPE_TEXTURE_2D;
template.compressed = 0;
template.cpp = pf_get_size(template.format);
template.width[0] = width;