diff options
author | Eric Anholt <[email protected]> | 2013-05-10 11:51:01 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-05-17 13:04:05 -0700 |
commit | e98c39c109f9b38d6bb97e3890382fdf66c25176 (patch) | |
tree | 3f51aa191af6052243787b0b10e1a4d581a64583 /src/mesa/drivers/dri/nouveau | |
parent | 7b085d1bfa7630571e04a7d630765d3e5ed63e25 (diff) |
mesa: Track the TexImage being rendered to in the gl_renderbuffer.
We keep having to pass the attachments around with our gl_renderbuffers
because that's the only way to find what the gl_renderbuffer actually
refers to. This is a step toward removing that (though drivers still need
the Zoffset as well).
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index a692051c082..f997ac888f9 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c @@ -252,8 +252,7 @@ nouveau_render_texture(struct gl_context *ctx, struct gl_framebuffer *fb, struct gl_renderbuffer_attachment *att) { struct gl_renderbuffer *rb = att->Renderbuffer; - struct gl_texture_image *ti = - att->Texture->Image[att->CubeMapFace][att->TextureLevel]; + struct gl_texture_image *ti = rb->TexImage; /* Update the renderbuffer fields from the texture. */ nouveau_surface_ref(&to_nouveau_teximage(ti)->surface, |