diff --git a/gb.qt4/src/opengl/CGLarea.cpp b/gb.qt4/src/opengl/CGLarea.cpp index 3a93e2cce..7c72bc2b0 100644 --- a/gb.qt4/src/opengl/CGLarea.cpp +++ b/gb.qt4/src/opengl/CGLarea.cpp @@ -169,6 +169,14 @@ void GLarea::initializeGL() void GLarea::paintGL() { + static bool CleanupOnFirstShow = 0; + + if (!CleanupOnFirstShow) + { + CleanupOnFirstShow = true; + glClear(GL_COLOR_BUFFER_BIT); + } + GB.Raise(_area, EVENT_Draw, 0); }