mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
d3d12: Fix for case where fragment shaders samples textures starting from non first unit.
This commit is contained in:
parent
ed3ac91263
commit
174fb97172
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ struct D3D12Traits
|
|||
{
|
||||
if (PT.type == "sampler2D")
|
||||
{
|
||||
fragmentProgramData.m_textureCount++;
|
||||
size_t texture_unit = atoi(PI.name.c_str() + 3);
|
||||
fragmentProgramData.m_textureCount = std::max(texture_unit + 1, fragmentProgramData.m_textureCount);
|
||||
continue;
|
||||
}
|
||||
size_t offset = atoi(PI.name.c_str() + 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue