From 951067dcac5f8e9fda034c4a69bb0711bca9d30c Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Fri, 28 Jul 2006 14:47:39 +0000 Subject: [PATCH] ogl_smash_texture_list_internal() should applay on windows in window mode as well to prevent texture problems --- arch/ogl/sdlgl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/ogl/sdlgl.c b/arch/ogl/sdlgl.c index 9acd699e5..44987944d 100755 --- a/arch/ogl/sdlgl.c +++ b/arch/ogl/sdlgl.c @@ -19,7 +19,9 @@ int ogl_init_window(int x, int y){ if (gl_initialized){ if (x==curx && y==cury && curfull==ogl_fullscreen) return 0; +#ifdef __LINUX__ if (ogl_fullscreen || curfull) +#endif ogl_smash_texture_list_internal();//if we are or were fullscreen, changing vid mode will invalidate current textures } SDL_WM_SetCaption(DESCENT_VERSION " " D1X_DATE, "Descent");