diff --git a/basegraph.cpp b/basegraph.cpp index 0ae2fbad..eb632b44 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -660,10 +660,12 @@ EX void resetGL() { floor_textures = NULL; } #endif + #if MAXMDIM >= 4 && CAP_GL if(airbuf) { delete airbuf; airbuf = nullptr; } + #endif check_cgi(); if(currentmap) cgi.require_shapes(); #if MAXMDIM >= 4 diff --git a/fieldpattern.cpp b/fieldpattern.cpp index 31c5b192..fc28606c 100644 --- a/fieldpattern.cpp +++ b/fieldpattern.cpp @@ -322,12 +322,12 @@ struct fpattern { int solve3(); bool generate_all3(); - vector find_triplets(); - #if CAP_THREAD struct discovery *dis; #endif #endif + + vector find_triplets(); }; #if CAP_THREAD && MAXMDIM >= 4