mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-31 04:54:29 +00:00
do not call GL functions if GL not initialized
This commit is contained in:
1 parent
7e2255844a
commit
71f31f1072
4 files changed
+21
-8
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user