diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shader_recompiler/ir_opt/texture_pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index 737f186ab..44ad10d43 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp | |||
| @@ -434,7 +434,7 @@ void TexturePass(Environment& env, IR::Program& program) { | |||
| 434 | throw NotImplementedException("Unexpected separate sampler"); | 434 | throw NotImplementedException("Unexpected separate sampler"); |
| 435 | } | 435 | } |
| 436 | const bool is_written{inst->GetOpcode() != IR::Opcode::ImageRead}; | 436 | const bool is_written{inst->GetOpcode() != IR::Opcode::ImageRead}; |
| 437 | const bool is_read{inst->GetOpcode() == IR::Opcode::ImageRead}; | 437 | const bool is_read{inst->GetOpcode() != IR::Opcode::ImageWrite}; |
| 438 | if (flags.type == TextureType::Buffer) { | 438 | if (flags.type == TextureType::Buffer) { |
| 439 | index = descriptors.Add(ImageBufferDescriptor{ | 439 | index = descriptors.Add(ImageBufferDescriptor{ |
| 440 | .format = flags.image_format, | 440 | .format = flags.image_format, |