Skip to content

Commit 77fe360

Browse files
committed
incorrect uniform resolution
1 parent 540d299 commit 77fe360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/processing/opengl/PShader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ protected void setCommonUniforms() {
12101210
}
12111211

12121212
if (-1 < resolutionLoc) {
1213-
float w = currentPG.viewport.get(2);
1214-
float h = currentPG.viewport.get(3);
1213+
float w = currentPG.viewport.get(2) * currentPG.pixelDensity;
1214+
float h = currentPG.viewport.get(3) * currentPG.pixelDensity;
12151215
setUniformValue(resolutionLoc, w, h);
12161216
}
12171217

0 commit comments

Comments
 (0)