Clear screen each frame, because SDL 1.3 does not do that

This commit is contained in:
pelya
2011-12-05 19:56:45 +02:00
parent aae35bbf37
commit 2730e20bd8

View File

@@ -218,6 +218,8 @@ void ANDROID_GL_SwapBuffers(_THIS, SDL_Window * window)
if( SDL_ANDROID_InsideVideoThread() )
SDL_ANDROID_CallJavaSwapBuffers();
// SDL: 1.3 does not clear framebuffer before drawing
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
};
SDL_GLContext ANDROID_GL_CreateContext(_THIS, SDL_Window * window)