Skip to content

Commit b3f8115

Browse files
Magic-zhugreggman
authored andcommitted
fix: img.src = url is missing in line142
Add ` img.src = url` in line142
1 parent 2cba2e3 commit b3f8115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webgl/lessons/webgl-2d-drawimage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Let's load some images into textures
139139
gl.bindTexture(gl.TEXTURE_2D, textureInfo.texture);
140140
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, img);
141141
});
142-
142+
img.src = url;
143143
return textureInfo;
144144
}
145145

0 commit comments

Comments
 (0)