diff --git a/sdk/tests/conformance/textures/misc/image-decoder-to-texture.html b/sdk/tests/conformance/textures/misc/image-decoder-to-texture.html index 18debd09d..2c65ca839 100644 --- a/sdk/tests/conformance/textures/misc/image-decoder-to-texture.html +++ b/sdk/tests/conformance/textures/misc/image-decoder-to-texture.html @@ -59,7 +59,7 @@ } let frame = decodeResult.image; if (window.WebGL2RenderingContext && gl instanceof window.WebGL2RenderingContext) { - gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, frame.width, frame.height, 0, gl.RGBA, gl.UNSIGNED_BYTE, frame); + gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, frame.codedWidth, frame.codedHeight, 0, gl.RGBA, gl.UNSIGNED_BYTE, frame); } else { gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, frame); }