We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40e051 commit 83a3574Copy full SHA for 83a3574
index.js
@@ -51,9 +51,9 @@ if (!script) {
51
}
52
53
var shader;
54
-if (script.type == "x-shader/x-fragment") {
+if (id == "shader-fs") {
55
shader = gl.createShader(gl.FRAGMENT_SHADER);
56
-} else if (script.type == "x-shader/x-vertex") {
+} else if (id == "shader-vs") {
57
shader = gl.createShader(gl.VERTEX_SHADER);
58
} else {
59
return null;
0 commit comments