Clean up if-else

This commit is contained in:
raven02 committed 2013-04-06 22:28:38 +08:00
1 parent 34f6a7512f
commit b03dfeb8a6
1 file changed
+2 -5
+2 -5
View File
@@ -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) {