void VFS_Refresh(){
if ( !g_vfsInitialized ) return;
+ // Always set camwindow visible when reloading VFS
+ // especially when loading maps, because GL states loaded
+ // by the camwindow are also used by the xywindow.
+ // Loading map at startup (not deferred) may also requires this
+ // to make sure GL states are ready at map loading time
+ // since camwindow is now the place to initialize GL stuff.
+ GlobalCamera_SetVisible();
GlobalFileSystem().clear();
QE_InitVFS();
GlobalFileSystem().refresh();
}
void UpdateAllWindows(){
- GlobalCamera_UpdateWindow();
XY_UpdateAllWindows();
+ GlobalCamera_UpdateWindow();
}
}
void ClipperChangeNotify(){
- GlobalCamera_UpdateWindow();
XY_UpdateAllWindows();
+ GlobalCamera_UpdateWindow();
}
ShaderCache_extensionsInitialised();
GlobalShaderCache().realise();
- Textures_Realise();
+ Textures_TriggerRealise();
#if GDEF_OS_WINDOWS
/* win32 is dodgy here, just use courier new then */