fix retina in an Austin approved manner

This commit is contained in:
ZappoMan 2015-07-17 16:01:32 -07:00
parent 03a44a1c80
commit c20c6e4b90
2 changed files with 5 additions and 6 deletions

View file

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

View file

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