summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_texture_desc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c
index 8c98594631..aa82c47151 100644
--- a/src/gallium/drivers/r300/r300_texture_desc.c
+++ b/src/gallium/drivers/r300/r300_texture_desc.c
@@ -480,6 +480,7 @@ unsigned r300_texture_get_offset(struct r300_texture_desc *desc,
switch (desc->b.b.target) {
case PIPE_TEXTURE_3D:
+ case PIPE_TEXTURE_CUBE:
return offset + layer * desc->layer_size_in_bytes[level];
default: