pixelDensity (OpenGL): make sure sketch pixel size is initialized

This commit is contained in:
Jakub Valtar
2017-02-18 20:28:38 +01:00
parent 68e8f848b9
commit fc7fb7464f
@@ -390,6 +390,8 @@ public class PSurfaceJOGL implements PSurface {
sketchHeight = screenRect.height;
}
sketch.setSize(sketchWidth, sketchHeight);
float[] reqSurfacePixelScale;
if (graphics.is2X()) {
// Retina