mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
polymost.cpp: switch from writing gl_FragColor to writing gl_FragData[0] in order to reduce VGPR usage on AMD cards
git-svn-id: https://svn.eduke32.com/eduke32@7613 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/polymost.cpp
This commit is contained in:
parent
2765ebec87
commit
9534bb1578
1 changed files with 2 additions and 2 deletions
|
@ -921,7 +921,7 @@ void polymost_glinit()
|
|||
\n\
|
||||
color.rgb = pow(color.rgb, vec3(u_brightness));\n\
|
||||
\n\
|
||||
gl_FragColor = color;\n\
|
||||
gl_FragData[0] = color;\n\
|
||||
}\n";
|
||||
const char* const POLYMOST1_EXTENDED_FRAGMENT_SHADER_CODE =
|
||||
"#version 110\n\
|
||||
|
@ -1018,7 +1018,7 @@ void polymost_glinit()
|
|||
\n\
|
||||
color.rgb = pow(color.rgb, vec3(u_brightness));\n\
|
||||
\n\
|
||||
gl_FragColor = color;\n\
|
||||
gl_FragData[0] = color;\n\
|
||||
}\n";
|
||||
|
||||
polymost1BasicShaderProgramID = glCreateProgram();
|
||||
|
|
Loading…
Reference in a new issue