mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
mesa: add proxy texture targets in _mesa_next_mipmap_level_size()
So we can use it for computing size of proxy textures. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
0ac9f25032
commit
39183ea971
1 changed files with 6 additions and 3 deletions
|
|
@ -1777,7 +1777,8 @@ _mesa_next_mipmap_level_size(GLenum target, GLint border,
|
|||
}
|
||||
|
||||
if ((srcHeight - 2 * border > 1) &&
|
||||
(target != GL_TEXTURE_1D_ARRAY_EXT)) {
|
||||
target != GL_TEXTURE_1D_ARRAY_EXT &&
|
||||
target != GL_PROXY_TEXTURE_1D_ARRAY_EXT) {
|
||||
*dstHeight = (srcHeight - 2 * border) / 2 + 2 * border;
|
||||
}
|
||||
else {
|
||||
|
|
@ -1785,8 +1786,10 @@ _mesa_next_mipmap_level_size(GLenum target, GLint border,
|
|||
}
|
||||
|
||||
if ((srcDepth - 2 * border > 1) &&
|
||||
(target != GL_TEXTURE_2D_ARRAY_EXT &&
|
||||
target != GL_TEXTURE_CUBE_MAP_ARRAY)) {
|
||||
target != GL_TEXTURE_2D_ARRAY_EXT &&
|
||||
target != GL_PROXY_TEXTURE_2D_ARRAY_EXT &&
|
||||
target != GL_TEXTURE_CUBE_MAP_ARRAY &&
|
||||
target != GL_PROXY_TEXTURE_CUBE_MAP_ARRAY) {
|
||||
*dstDepth = (srcDepth - 2 * border) / 2 + 2 * border;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue