Added call to gl_clearwin() for filter modes [zinx]
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user