| Index: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image-data.html
|
| diff --git a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image-data.html b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image-data.html
|
| similarity index 80%
|
| copy from LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image-data.html
|
| copy to LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image-data.html
|
| index e81cfb304a45ca358d8f90c0d1f21394c93880ee..8659bd2ac3aed4d2ceb2d6819ad05150700edcfb 100644
|
| --- a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-image-data.html
|
| +++ b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-image-data.html
|
| @@ -1,7 +1,7 @@
|
| <!--
|
|
|
| /*
|
| -** Copyright (c) 2012 The Khronos Group Inc.
|
| +** Copyright (c) 2013 The Khronos Group Inc.
|
| **
|
| ** Permission is hereby granted, free of charge, to any person obtaining a
|
| ** copy of this software and/or associated documentation files (the
|
| @@ -37,17 +37,22 @@
|
| <script>
|
| "use strict";
|
| function testPrologue(gl) {
|
| - if (!gl.getExtension("OES_texture_float")) {
|
| - testPassed("No OES_texture_float support -- this is legal");
|
| + var ext = null;
|
| +
|
| + if (!(ext = gl.getExtension("OES_texture_half_float"))) {
|
| + testPassed("No OES_texture_half_float support -- this is legal");
|
| return false;
|
| }
|
|
|
| - testPassed("Successfully enabled OES_texture_float extension");
|
| + // Required by the test harness.
|
| + gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES;
|
| +
|
| + testPassed("Successfully enabled OES_texture_half_float extension");
|
| return true;
|
| }
|
| </script>
|
| </head>
|
| -<body onload='generateTest("RGBA", "FLOAT", testPrologue)()'>
|
| +<body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'>
|
| <canvas id="texcanvas" width="1" height="2"></canvas>
|
| <canvas id="example" width="1" height="2"></canvas>
|
| <div id="description"></div>
|
|
|