mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Clean up if-else
This commit is contained in:
1 parent
34f6a7512f
commit
b03dfeb8a6
1 file changed
+2
-5
@@ -143,13 +143,10 @@ void GenerateFragmentShader(char *buffer) {
|
||||
|
||||
WRITE(p, "void main() {\n");
|
||||
|
||||
if (gstate.clearmode & 1)
|
||||
{
|
||||
if (gstate.clearmode & 1) {
|
||||
// Clear mode does not allow any fancy shading.
|
||||
WRITE(p, " gl_FragColor = v_color0;\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
const char *secondary = "";
|
||||
// Secondary color for specular on top of texture
|
||||
if (lmode) {
|
||||
|
||||
Reference in new issue
Block a user