gallium: set template.target = PIPE_TEXTURE_2D
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 May 2008 17:12:15 +0000 (11:12 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 May 2008 17:14:08 +0000 (11:14 -0600)
src/mesa/state_tracker/st_cb_fbo.c

index cb5736f7c3d5f76558f96f4f1a2f78be30b344d4..1fa82b07e68322944cdcf99fc8d7173f300db723 100644 (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;