From 9534bb15789483fe8ae8eb3229fe375ae6162e5e Mon Sep 17 00:00:00 2001 From: pogokeen Date: Fri, 19 Apr 2019 21:45:26 +0000 Subject: [PATCH] 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 --- source/build/src/polymost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 083f034e1..10081feab 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -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();