Fix move between Retina / Non-Retina.
This commit is contained in:
parent
4837b47623
commit
34a867b2a0
1 changed files with 1 additions and 5 deletions
|
|
@ -97,11 +97,7 @@ void SurfaceOpenGL::paintEvent(QPaintEvent *e) {
|
|||
f->glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
f->glDisable(GL_BLEND);
|
||||
f->glViewport(
|
||||
0,
|
||||
0,
|
||||
width() * devicePixelRatio(),
|
||||
height() * devicePixelRatio());
|
||||
f->glViewport(0, 0, device->width(), device->height());
|
||||
_renderer->paint(this, *f);
|
||||
engine->end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue