Fix hardware renderer scaling on HiDPI modes
This commit is contained in:
@@ -11,7 +11,7 @@ extern "C" {
|
||||
|
||||
void HardwareRenderer::resizeGL(int w, int h)
|
||||
{
|
||||
glViewport(0, 0, w, h);
|
||||
glViewport(0, 0, w * devicePixelRatio(), h * devicePixelRatio());
|
||||
}
|
||||
|
||||
#define PROGRAM_VERTEX_ATTRIBUTE 0
|
||||
|
Reference in New Issue
Block a user