mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-27 08:12:33 +00:00
Clean up if-else
This commit is contained in:
parent
34f6a7512f
commit
b03dfeb8a6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user