aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/texrender.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-04-06 20:33:32 +0000
committermarha <marha@users.sourceforge.net>2011-04-06 20:33:32 +0000
commit704e01fc69ebf6302aa1876906805147248abdaa (patch)
tree55a4a5ffdf2d39f193d218785155a096966f30a6 /mesalib/src/mesa/main/texrender.c
parenteaedc21febeadad4cf0e370f5d97e7bdb4470870 (diff)
downloadvcxsrv-704e01fc69ebf6302aa1876906805147248abdaa.tar.gz
vcxsrv-704e01fc69ebf6302aa1876906805147248abdaa.tar.bz2
vcxsrv-704e01fc69ebf6302aa1876906805147248abdaa.zip
xserver libX11 libxcb mesa git update 6 Apr 2011
Diffstat (limited to 'mesalib/src/mesa/main/texrender.c')
-rw-r--r--mesalib/src/mesa/main/texrender.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesalib/src/mesa/main/texrender.c b/mesalib/src/mesa/main/texrender.c
index 1546f1962..2766bd6c5 100644
--- a/mesalib/src/mesa/main/texrender.c
+++ b/mesalib/src/mesa/main/texrender.c
@@ -1,6 +1,7 @@
#include "context.h"
#include "colormac.h"
+#include "fbobject.h"
#include "macros.h"
#include "texfetch.h"
#include "teximage.h"
@@ -525,7 +526,7 @@ wrap_texture(struct gl_context *ctx, struct gl_renderbuffer_attachment *att)
* update the internal format info, etc.
*/
static void
-update_wrapper(struct gl_context *ctx, const struct gl_renderbuffer_attachment *att)
+update_wrapper(struct gl_context *ctx, struct gl_renderbuffer_attachment *att)
{
struct texture_renderbuffer *trb
= (struct texture_renderbuffer *) att->Renderbuffer;
@@ -533,7 +534,7 @@ update_wrapper(struct gl_context *ctx, const struct gl_renderbuffer_attachment *
(void) ctx;
ASSERT(trb);
- trb->TexImage = att->Texture->Image[att->CubeMapFace][att->TextureLevel];
+ trb->TexImage = _mesa_get_attachment_teximage(att);
ASSERT(trb->TexImage);
trb->Store = _mesa_get_texel_store_func(trb->TexImage->TexFormat);