mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 17:38:20 +02:00
r300g: fix up cubemap texture offset computation
Broken since 4c70014626.
This commit is contained in:
parent
431c478df9
commit
f3021c688f
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue