mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53:03 +02:00
fix retina in an Austin approved manner
This commit is contained in:
parent
03a44a1c80
commit
c20c6e4b90
2 changed files with 5 additions and 6 deletions
|
@ -896,10 +896,7 @@ void Application::paintGL() {
|
|||
{
|
||||
PerformanceTimer perfTimer("renderOverlay");
|
||||
|
||||
// NOTE: the ApplicationOverlay class assumes it's viewport is setup to be the device size
|
||||
// There is no batch associated with this renderArgs
|
||||
glm::vec2 size = getCanvasSize();
|
||||
renderArgs._viewport = glm::ivec4(0, 0, size.x, size.y);
|
||||
// NOTE: There is no batch associated with this renderArgs
|
||||
_applicationOverlay.renderOverlay(&renderArgs);
|
||||
}
|
||||
|
||||
|
|
|
@ -102,8 +102,10 @@ void Overlays::renderHUD(RenderArgs* renderArgs) {
|
|||
|
||||
auto geometryCache = DependencyManager::get<GeometryCache>();
|
||||
auto textureCache = DependencyManager::get<TextureCache>();
|
||||
int width = renderArgs->_viewport.z;
|
||||
int height = renderArgs->_viewport.w;
|
||||
|
||||
auto size = qApp->getCanvasSize();
|
||||
int width = size.x;
|
||||
int height = size.y;
|
||||
mat4 legacyProjection = glm::ortho<float>(0, width, height, 0, -1000, 1000);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue