diff --git a/sdk/tests/conformance2/uniforms/00_test_list.txt b/sdk/tests/conformance2/uniforms/00_test_list.txt index 05e01f554c..098239f178 100644 --- a/sdk/tests/conformance2/uniforms/00_test_list.txt +++ b/sdk/tests/conformance2/uniforms/00_test_list.txt @@ -1,9 +1,9 @@ --min-version 2.0.1 draw-with-uniform-blocks.html --min-version 2.0.1 gl-uniform-arrays-sub-source.html --min-version 2.0.1 query-uniform-blocks-after-shader-detach.html +--min-version 2.0.1 uniform-block-idents-as-expr.html --min-version 2.0.1 uniform-blocks-with-arrays.html --min-version 2.0.1 simple-buffer-change.html --min-version 2.0.1 dependent-buffer-change.html --min-version 2.0.1 incompatible-texture-type-for-sampler.html --min-version 2.0.1 large-uniform-buffers.html - diff --git a/sdk/tests/conformance2/uniforms/uniform-block-idents-as-expr.html b/sdk/tests/conformance2/uniforms/uniform-block-idents-as-expr.html new file mode 100644 index 0000000000..6860dc9005 --- /dev/null +++ b/sdk/tests/conformance2/uniforms/uniform-block-idents-as-expr.html @@ -0,0 +1,107 @@ + + + + + + +WebGL uniform block identifiers used as expressions + + + + + +
+
+ + + + + diff --git a/sdk/tests/js/webgl-test-utils.js b/sdk/tests/js/webgl-test-utils.js index f17f69fa30..3697f7f31b 100644 --- a/sdk/tests/js/webgl-test-utils.js +++ b/sdk/tests/js/webgl-test-utils.js @@ -295,7 +295,7 @@ var setupProgram = function( var shader = shaders[ii]; var shaderType = undefined; if (typeof shader == 'string') { - var element = document.getElementById(shader); + const element = shader != '' && document.getElementById(shader); if (element) { if (element.type != "x-shader/x-vertex" && element.type != "x-shader/x-fragment") shaderType = ii ? gl.FRAGMENT_SHADER : gl.VERTEX_SHADER;