2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
10 <meta charset=
"utf-8">
11 <title>WebGL copy into cube map texture bug conformance test
</title>
12 <link rel=
"stylesheet" href=
"../../../resources/js-test-style.css"/>
13 <script src=
"../../../js/js-test-pre.js"></script>
14 <script src=
"../../../js/webgl-test-utils.js"></script>
17 <div id=
"description"></div>
18 <div id=
"console"></div>
19 <canvas id=
"canvas" width=
"1024" height=
"1024"></canvas>
22 var wtu
= WebGLTestUtils
;
26 var buffer
= gl
.createBuffer();
27 gl
.bindBuffer(gl
.PIXEL_UNPACK_BUFFER
, buffer
);
28 gl
.pixelStorei(gl
.UNPACK_ROW_LENGTH
,5);
30 var texture
= gl
.createTexture();
31 gl
.bindTexture(gl
.TEXTURE_CUBE_MAP
, texture
);
32 gl
.copyTexImage2D(gl
.TEXTURE_CUBE_MAP_NEGATIVE_Z
, 5, gl
.RGBA
, 75, 10, 2, 2, 0);
33 // Note that this bug only manifest with Chrome ASAN build on MacOSX with Intel drivers.
34 // At this point ASAN build will crash inside Intel driver code.
35 testPassed("Chrome ASAN build on MacOSX with Intel driver should have crashed at this point with this bug");
39 debug("This is a regression test for <a href='https://bugs.chromium.org/p/chromium/issues/detail?id=892282'>Chromium Issue 892282</a>");
41 var canvas
= document
.getElementById("canvas");
42 shouldBeNonNull("gl = wtu.create3DContext(canvas, undefined, 2)");
45 var successfullyParsed
= true;
47 <script src=
"../../../js/js-test-post.js"></script>