Skip to content

Commit b278d73

Browse files
committed
2 parents 53069a1 + 28c1799 commit b278d73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/processing/opengl/PGL.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,19 @@ public abstract class PGL {
201201

202202
protected static String[] tex2DFragShaderSource = {
203203
SHADER_PREPROCESSOR_DIRECTIVE,
204-
"uniform sampler2D texSampler;",
204+
"uniform sampler2D texMap;",
205205
"varying vec2 vertTexCoord;",
206206
"void main() {",
207-
" gl_FragColor = texture2D(texSampler, vertTexCoord.st);",
207+
" gl_FragColor = texture2D(texMap, vertTexCoord.st);",
208208
"}"
209209
};
210210

211211
protected static String[] texRectFragShaderSource = {
212212
SHADER_PREPROCESSOR_DIRECTIVE,
213-
"uniform sampler2DRect texSampler;",
213+
"uniform sampler2DRect texMap;",
214214
"varying vec2 vertTexCoord;",
215215
"void main() {",
216-
" gl_FragColor = texture2DRect(texSampler, vertTexCoord.st);",
216+
" gl_FragColor = texture2DRect(texMap, vertTexCoord.st);",
217217
"}"
218218
};
219219

@@ -907,7 +907,7 @@ protected void initTex2DShader() {
907907
if (0 < tex2DShaderProgram) {
908908
tex2DVertLoc = getAttribLocation(tex2DShaderProgram, "position");
909909
tex2DTCoordLoc = getAttribLocation(tex2DShaderProgram, "texCoord");
910-
tex2DSamplerLoc = getUniformLocation(tex2DShaderProgram, "texSampler");
910+
tex2DSamplerLoc = getUniformLocation(tex2DShaderProgram, "texMap");
911911
}
912912
loadedTex2DShader = true;
913913
tex2DShaderContext = glContext;
@@ -1033,7 +1033,7 @@ protected void initTexRectShader() {
10331033
if (0 < texRectShaderProgram) {
10341034
texRectVertLoc = getAttribLocation(texRectShaderProgram, "position");
10351035
texRectTCoordLoc = getAttribLocation(texRectShaderProgram, "texCoord");
1036-
texRectSamplerLoc = getUniformLocation(texRectShaderProgram, "texSampler");
1036+
texRectSamplerLoc = getUniformLocation(texRectShaderProgram, "texMap");
10371037
}
10381038
loadedTexRectShader = true;
10391039
texRectShaderContext = glContext;

0 commit comments

Comments
 (0)