mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 09:34:18 +02:00
minor changes of prev commit
This commit is contained in:
@@ -357,7 +357,6 @@ namespace GAPI {
|
|||||||
default : ASSERT(false); LOG("! wrong pass id\n"); return;
|
default : ASSERT(false); LOG("! wrong pass id\n"); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char buf[256];
|
|
||||||
char defines[1024];
|
char defines[1024];
|
||||||
defines[0] = 0;
|
defines[0] = 0;
|
||||||
|
|
||||||
@@ -366,11 +365,9 @@ namespace GAPI {
|
|||||||
if (def[i] == SD_SHADOW_SAMPLER)
|
if (def[i] == SD_SHADOW_SAMPLER)
|
||||||
strcat(defines, "#extension GL_EXT_shadow_samplers : require\n"); // ACHTUNG! must be first in the list
|
strcat(defines, "#extension GL_EXT_shadow_samplers : require\n"); // ACHTUNG! must be first in the list
|
||||||
#endif
|
#endif
|
||||||
sprintf(buf, "#define %s\n", DefineName[def[i]]);
|
sprintf(defines + strlen(defines), "#define %s\n", DefineName[def[i]]);
|
||||||
strcat(defines, buf);
|
|
||||||
}
|
}
|
||||||
sprintf(buf, "#define PASS_%s\n", passNames[pass]);
|
sprintf(defines + strlen(defines), "#define PASS_%s\n", passNames[pass]);
|
||||||
strcat(defines, buf);
|
|
||||||
|
|
||||||
#if defined(_OS_RPI) || defined(_OS_CLOVER)
|
#if defined(_OS_RPI) || defined(_OS_CLOVER)
|
||||||
strcat(defines, "#define OPT_VLIGHTPROJ\n");
|
strcat(defines, "#define OPT_VLIGHTPROJ\n");
|
||||||
|
Reference in New Issue
Block a user