Skip to content

Commit

Permalink
canvas-pc: fix path
Browse files Browse the repository at this point in the history
so it works locally too and does not assume /samples as root

Fixes webrtc#1510
  • Loading branch information
fippo committed Apr 14, 2022
1 parent 20a7632 commit 9bc8d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/third_party/webgl_teapot/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function init() {
gl.clearColor(0.0, 0.0, 0.0, 0.0);
initTeapot();
initShaders();
g_bumpTexture = loadTexture("/samples/src/js/third_party/webgl_teapot/images/bump.jpg");
g_envTexture = loadCubeMap("/samples/src/js/third_party/webgl_teapot/images/skybox", "jpg");
g_bumpTexture = loadTexture("../../../js/third_party/webgl_teapot/images/bump.jpg");
g_envTexture = loadCubeMap("../../../js/third_party/webgl_teapot/images/skybox", "jpg");
draw();
}

Expand Down

0 comments on commit 9bc8d31

Please sign in to comment.