Move su_load_gmdls into the responsibility of the intro to call, anticipating multicore rendering so it is called once before all the cores are spun up.

This commit is contained in:
Veikko Sariola
2020-05-27 17:08:35 +03:00
parent 200937aa50
commit c5b6e6e28c
7 changed files with 30 additions and 23 deletions

View File

@ -26,6 +26,10 @@
#endif
extern void CALLCONV su_render(void *);
#ifdef INCLUDE_GMDLS
extern void CALLCONV su_load_gmdls(void);
#endif
extern int su_max_samples;
int main(int argc, char* argv[]) {
@ -59,6 +63,10 @@ int main(int argc, char* argv[]) {
return 1;
}
#ifdef INCLUDE_GMDLS
su_load_gmdls();
#endif
su_render(buf);
snprintf(filename, sizeof filename, "%s%s%s", expected_output_folder, test_name, ".raw");