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:
pogokeen 2019-04-19 21:45:26 +00:00 committed by Christoph Oelckers
parent 2765ebec87
commit 9534bb1578

View file

@ -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();