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->glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
f->glDisable(GL_BLEND);
|
f->glDisable(GL_BLEND);
|
||||||
f->glViewport(
|
f->glViewport(0, 0, device->width(), device->height());
|
||||||
0,
|
|
||||||
0,
|
|
||||||
width() * devicePixelRatio(),
|
|
||||||
height() * devicePixelRatio());
|
|
||||||
_renderer->paint(this, *f);
|
_renderer->paint(this, *f);
|
||||||
engine->end();
|
engine->end();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue