mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 19:13:49 +01:00
d3d12: Fix for case where fragment shaders samples textures starting from non first unit.
This commit is contained in:
1 parent
ed3ac91263
commit
174fb97172
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user