do not call GL functions if GL not initialized

This commit is contained in:
Zeno Rogue committed 2026-09-17 09:36:43 +02:00
1 parent 7e2255844a
commit 71f31f1072
4 files changed
+21 -8

No files matched your search

+1 -1
View File
@@ -2548,7 +2548,7 @@ transmatrix backup_cam;
EX void enable_flat_model(int val) {
if(flat_on < 1 && flat_on + val >= 1) {
#if CAP_GL
glClear(GL_DEPTH_BUFFER_BIT);
if(graphics_on && vid.usingGL) glClear(GL_DEPTH_BUFFER_BIT);
#endif
backup_geometry = geometry;
backup_variation = variation;