diff options
author | Eric Anholt <[email protected]> | 2013-04-22 10:38:41 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-05-06 14:33:38 -0700 |
commit | 749a92786d378ee55cf9ebbbe8596c217fbae0f9 (patch) | |
tree | 57b80a3a7cc6378d6db4b8172ea56e58f3410f44 /src/mesa/drivers/dri/nouveau | |
parent | 5b9609f59ac4e9079a6dea1212178070a45ab8e9 (diff) |
mesa: Make core Mesa allocate the texture renderbuffer wrapper.
Every driver did the same thing.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_fbo.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index b4870099a28..adead3d1bd4 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c @@ -270,16 +270,6 @@ nouveau_render_texture(struct gl_context *ctx, struct gl_framebuffer *fb, struct gl_texture_image *ti = att->Texture->Image[att->CubeMapFace][att->TextureLevel]; - /* Allocate a renderbuffer object for the texture if we - * haven't already done so. */ - if (!rb) { - rb = nouveau_renderbuffer_new(ctx, ~0); - assert(rb); - - rb->AllocStorage = NULL; - _mesa_reference_renderbuffer(&att->Renderbuffer, rb); - } - /* Update the renderbuffer fields from the texture. */ set_renderbuffer_format(rb, get_tex_format(ti)); rb->Width = ti->Width; |