From f3021c688fc7a9c7d1eb5c207b6edebfcc9bd6fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 2 Dec 2010 14:30:56 +0100 Subject: [PATCH] r300g: fix up cubemap texture offset computation Broken since 4c7001462607e6e99e474d6271dd481d3f8f201c. --- src/gallium/drivers/r300/r300_texture_desc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c index 8c985946315..aa82c47151a 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: -- 2.30.2