From dffb6780c392dd386ca964573f0adb4313f2cc3c Mon Sep 17 00:00:00 2001 From: LordArugula Date: Tue, 12 Nov 2024 17:02:44 -0800 Subject: [PATCH] Revert "corrected builtin function use" (#36759) Revert "corrected builtin function use (#30461)" This reverts commit 5a651fade3a92110761d2fb613d0e4f6da47826e. --- .../api/webgl_api/tutorial/using_textures_in_webgl/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md b/files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md index 83503b0a13f61fb..04daf0280cafd8a 100644 --- a/files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md +++ b/files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md @@ -235,10 +235,9 @@ const fsSource = ` varying highp vec2 vTextureCoord; uniform sampler2D uSampler; - out vec4 fragColor; void main(void) { - fragColor = texture(uSampler, vTextureCoord); + gl_FragColor = texture2D(uSampler, vTextureCoord); } `; ```