Skip to content

Commit ff6e7bf

Browse files
committed
Fix check in loadShader()
1 parent b785e1d commit ff6e7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6681,7 +6681,7 @@ public PShader loadShader(String fragFilename, String vertFilename) {
66816681
if (fragFilename == null || fragFilename.equals("")) {
66826682
PGraphics.showWarning(MISSING_FRAGMENT_SHADER);
66836683
return null;
6684-
} else if (fragFilename == null || fragFilename.equals("")) {
6684+
} else if (vertFilename == null || vertFilename.equals("")) {
66856685
PGraphics.showWarning(MISSING_VERTEX_SHADER);
66866686
return null;
66876687
} else {

0 commit comments

Comments
 (0)