From fc7fb7464f7e4141e92ca75a54f4ed7299c43e79 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Sat, 18 Feb 2017 20:28:38 +0100 Subject: [PATCH] pixelDensity (OpenGL): make sure sketch pixel size is initialized --- core/src/processing/opengl/PSurfaceJOGL.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index b314ad451..0649e389e 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -390,6 +390,8 @@ public class PSurfaceJOGL implements PSurface { sketchHeight = screenRect.height; } + sketch.setSize(sketchWidth, sketchHeight); + float[] reqSurfacePixelScale; if (graphics.is2X()) { // Retina