mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
Fix typo in glsl preprocessor
Add missing 2D which disappeared in https://github.com/processing/processing/pull/4052/files#diff-88c7dd4e8f37672d20e228a71a433a6dL1889
This commit is contained in:
@@ -1914,7 +1914,7 @@ public abstract class PGL {
|
||||
Pattern[] search = new Pattern[] {
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "varying|attribute")),
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "texture")),
|
||||
Pattern.compile(String.format(GLSL_FN_REGEX, "textureRect|texture2D|texture3D|textureCube")),
|
||||
Pattern.compile(String.format(GLSL_FN_REGEX, "texture2DRect|texture2D|texture3D|textureCube")),
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "gl_FragColor"))
|
||||
};
|
||||
String[] replace = new String[] {
|
||||
@@ -1954,7 +1954,7 @@ public abstract class PGL {
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "varying")),
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "attribute")),
|
||||
Pattern.compile(String.format(GLSL_ID_REGEX, "texture")),
|
||||
Pattern.compile(String.format(GLSL_FN_REGEX, "textureRect|texture2D|texture3D|textureCube"))
|
||||
Pattern.compile(String.format(GLSL_FN_REGEX, "texture2DRect|texture2D|texture3D|textureCube"))
|
||||
};
|
||||
String[] replace = new String[] {
|
||||
"out", "in", "texMap", "texture",
|
||||
|
||||
Reference in New Issue
Block a user