devicePixelRatio() support

This commit is contained in:
2023-02-06 19:50:27 +03:00
parent 7c6ca07323
commit 4e02e154c6
17 changed files with 98 additions and 47 deletions

View File

@@ -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);
}