Skip to content

Commit

Permalink
CanvasWindow: Use updateGL() when initializing the canvas after recre…
Browse files Browse the repository at this point in the history
…ation

Calling updateGL() instead of update() works better on Windows; the
canvas switchover appears smoother and achieves similar behavior to
the Mac/X11 platform(s).
  • Loading branch information
danij-deng committed May 13, 2012
1 parent 38a10bb commit 8463b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/canvaswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void CanvasWindow::initCanvasAfterRecreation(Canvas& canvas)
self->d->canvas->makeCurrent();
GL_Init2DState();
self->d->canvas->doneCurrent();
self->d->canvas->update();
self->d->canvas->updateGL();

// Reacquire the focus.
self->d->canvas->setFocus();
Expand Down

0 comments on commit 8463b14

Please sign in to comment.