mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx/common/d3d12: Force depth to be at least 1.
This commit is contained in:
parent
a97dc349b7
commit
9c6539ea2d
2 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ ComPtr<ID3D12Resource> upload_single_texture(
|
|||
{
|
||||
size_t w = texture.width(), h = texture.height();
|
||||
size_t depth = texture.depth();
|
||||
if (depth == 0) depth = 1;
|
||||
if (texture.cubemap()) depth *= 6;
|
||||
|
||||
const u8 format = texture.format() & ~(CELL_GCM_TEXTURE_LN | CELL_GCM_TEXTURE_UN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue