mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-06 03:22:49 +00:00
fixed the order of operations in resetGL
This commit is contained in:
parent
48876ad63d
commit
2a2f3a5c4f
@ -776,15 +776,15 @@ EX void resetGL() {
|
|||||||
airbuf = nullptr;
|
airbuf = nullptr;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
check_cgi();
|
|
||||||
if(currentmap) cgi.require_shapes();
|
|
||||||
#if MAXMDIM >= 4
|
|
||||||
if(GDIM == 3 && !floor_textures) make_floor_textures();
|
|
||||||
#endif
|
|
||||||
cgi.initPolyForGL();
|
|
||||||
compiled_programs.clear();
|
compiled_programs.clear();
|
||||||
matched_programs.clear();
|
matched_programs.clear();
|
||||||
glhr::current_glprogram = nullptr;
|
glhr::current_glprogram = nullptr;
|
||||||
|
check_cgi();
|
||||||
|
if(currentmap) cgi.require_shapes();
|
||||||
|
cgi.initPolyForGL();
|
||||||
|
#if MAXMDIM >= 4
|
||||||
|
if(GDIM == 3 && !floor_textures) make_floor_textures();
|
||||||
|
#endif
|
||||||
ray::reset_raycaster();
|
ray::reset_raycaster();
|
||||||
#if CAP_RUG
|
#if CAP_RUG
|
||||||
if(rug::glbuf) rug::close_glbuf();
|
if(rug::glbuf) rug::close_glbuf();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user