Added call to gl_clearwin() for filter modes [zinx]

This commit is contained in:
hpsolo
2001-06-04 03:44:21 +00:00
parent 68cf2d88f7
commit 6bfe7fcf77
2 changed files with 8 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ extern Uint8 GUIOn2;
extern unsigned int vidbuffer;
void gl_clearwin();
int gl_start(int width, int height, int req_depth, int FullScreen)
{
Uint32 flags =
@@ -55,6 +57,7 @@ int gl_start(int width, int height, int req_depth, int FullScreen)
return FALSE;
}
gl_clearwin();
SurfaceLocking = SDL_MUSTLOCK(surface);
SDL_WarpMouse(SurfaceX / 4, SurfaceY / 4);

View File

@@ -89,6 +89,10 @@ void initwinvideo();
void ProcessKeyBuf(int scancode);
void LinuxExit(void);
#ifdef __OPENGL__
extern void gl_clearwin();
#endif
int Main_Proc(void)
{
int j;
@@ -254,6 +258,7 @@ int Main_Proc(void)
WindowHeight, BitDepth, surface->flags);
glViewport(0,0, WindowWidth, WindowHeight);
glFlush();
gl_clearwin();
break;
#endif
default: