diff options
Diffstat (limited to 'src/mesa/swrast/s_texrender.c')
-rw-r--r-- | src/mesa/swrast/s_texrender.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_texrender.c b/src/mesa/swrast/s_texrender.c index 368fa98b214..af4be7bab1c 100644 --- a/src/mesa/swrast/s_texrender.c +++ b/src/mesa/swrast/s_texrender.c @@ -135,12 +135,12 @@ update_wrapper(struct gl_context *ctx, struct gl_renderbuffer_attachment *att) */ if (att->Texture->Target == GL_TEXTURE_3D || att->Texture->Target == GL_TEXTURE_2D_ARRAY_EXT) { - trb->Base.Data = trb->TexImage->Buffer + + trb->Base.Buffer = trb->TexImage->Buffer + trb->TexImage->ImageOffsets[trb->Zoffset] * _mesa_get_format_bytes(trb->TexImage->Base.TexFormat); } else { - trb->Base.Data = trb->TexImage->Buffer; + trb->Base.Buffer = trb->TexImage->Buffer; } /* XXX may need more special cases here */ |