mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
texture_cache: Fix layered null surfaces
Null texture cubes were not considered arrays, causing issues on Vulkan and OpenGL when creating views.
This commit is contained in:
parent
b17fe82973
commit
b2c4521a91
1 changed files with 3 additions and 1 deletions
|
@ -991,7 +991,9 @@ private:
|
||||||
params.target = target;
|
params.target = target;
|
||||||
params.is_tiled = false;
|
params.is_tiled = false;
|
||||||
params.srgb_conversion = false;
|
params.srgb_conversion = false;
|
||||||
params.is_layered = false;
|
params.is_layered =
|
||||||
|
target == SurfaceTarget::Texture1DArray || target == SurfaceTarget::Texture2DArray ||
|
||||||
|
target == SurfaceTarget::TextureCubemap || target == SurfaceTarget::TextureCubeArray;
|
||||||
params.block_width = 0;
|
params.block_width = 0;
|
||||||
params.block_height = 0;
|
params.block_height = 0;
|
||||||
params.block_depth = 0;
|
params.block_depth = 0;
|
||||||
|
|
Loading…
Reference in a new issue