[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:
parent
0a95ff227f
commit
64cba9faf9
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue