devicePixelRatio() support
This commit is contained in:
@@ -511,7 +511,7 @@ void RendererService::renderService() {
|
||||
axis_camera->setRotation(r->view->camera()->rotation());
|
||||
r->setUniformCamera(prog, axis_camera, true, axis_viewport);
|
||||
axis_mesh->draw(f, 3);
|
||||
f->glViewport(0, 0, r->view->width(), r->view->height());
|
||||
f->glViewport(0, 0, r->view->pixelWidth(), r->view->pixelHeight());
|
||||
}
|
||||
f->glDisable(GL_MULTISAMPLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user