Skip to content

Commit

Permalink
GL FB readback: Only use "inout" if we actually want to read from the…
Browse files Browse the repository at this point in the history
… fb.
  • Loading branch information
hrydgard committed Jan 17, 2021
1 parent ca50077 commit c8bbf40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/FragmentShaderGenerator.cpp
Expand Up @@ -394,7 +394,7 @@ bool GenerateFragmentShader(const FShaderID &id, char *buffer, const ShaderLangu

if (!strcmp(compat.fragColor0, "fragColor0")) {
const char *qualifierColor0 = "out";
if (compat.lastFragData && !strcmp(compat.lastFragData, compat.fragColor0)) {
if (readFramebuffer && compat.lastFragData && !strcmp(compat.lastFragData, compat.fragColor0)) {
qualifierColor0 = "inout";
}
// Output the output color definitions.
Expand Down

0 comments on commit c8bbf40

Please sign in to comment.