[GB.QT4.OPENGL]

* BUG: Clear GlArea when it's shown for the first time to avoid garbage displaying.


git-svn-id: svn://localhost/gambas/trunk@2667 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Laurent Carlier 2010-02-07 21:55:19 +00:00
parent 0a95ff227f
commit 64cba9faf9

View file

@ -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);
}