make face culling optional
This commit is contained in:
1 parent
6ef3cf1a3a
commit
166ae43981
3 files changed
+13
-1
No files matched your search
@@ -596,6 +596,13 @@ static bool initialize(void) {
|
||||
}
|
||||
}
|
||||
SDL_free(datum_font_filtering.u.s);
|
||||
|
||||
toml_datum_t datum_cull_faces = toml_bool_in(engine, "cull_faces");
|
||||
if (!datum_cull_faces.ok) {
|
||||
ctx.cull_faces = true;
|
||||
} else {
|
||||
ctx.cull_faces = datum_cull_faces.u.b;
|
||||
}
|
||||
}
|
||||
|
||||
/* these are dynamic arrays and will be allocated lazily by stb_ds */
|
||||
|
||||
Reference in new issue
Block a user