From 04b1d5b77ec28aa74dc3aea7368f661221bdcb24 Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 16 Nov 2002 00:35:22 +0000 Subject: Bleh --- mogltk/glbase.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mogltk') diff --git a/mogltk/glbase.cpp b/mogltk/glbase.cpp index dabf28a..11d15ae 100644 --- a/mogltk/glbase.cpp +++ b/mogltk/glbase.cpp @@ -62,6 +62,9 @@ int mogltk::glbase::setup(int w, int h, int flags) throw(GeneralException) { glEnable(GL_TEXTURE_2D); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + Flip(); + return 0; } @@ -115,6 +118,7 @@ void mogltk::glbase::Leave2DMode(void) { void mogltk::glbase::Flip() { SDL_GL_SwapBuffers(); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } bool mogltk::glbase::is2D() { -- cgit v1.2.3