<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear All,<br>I have a question, When a glcontext is lost and again restored , what should be the behaviour of associated extensions ?<br>I have a test case&nbsp; http://www.khronos.org/registry/webgl/sdk/tests/conformance/context/context-lost-restored.html,<br>and in it I am confused to see&nbsp; that upon context restoration , test case expects extension 's related API's to be NULL .<br><br>here is the&nbsp; js code snippet from above mentioned link:<br><br><br><pre id="line1"><span>function testOESVertexArrayObject() {
<span id="line258"></span>  if (OES_vertex_array_object) {
<span id="line259"></span>    // Extension must still be lost.
<span id="line260"></span>    shouldBeNull("OES_vertex_array_object.createVertexArrayOES()");  // WHY ????
<span id="line261"></span>    // Try re-enabling extension
<span id="line262"></span>
<span id="line263"></span>    old_OES_vertex_array_object = OES_vertex_array_object;
<span id="line264"></span>    OES_vertex_array_object = reGetExtensionAndTestForProperty(gl, "OES_vertex_array_object", false);
<span id="line265"></span>    shouldBeTrue("OES_vertex_array_object.createVertexArrayOES() != null");
<span id="line266"></span>    shouldBeTrue("old_OES_vertex_array_object.createVertexArrayOES() == null");
<span id="line267"></span>  }
<span id="line268"></span>}
<span id="line269"></span>
<span id="line270"></span>function testExtensions() {
<span id="line271"></span>  testOESTextureFloat();
<span id="line272"></span>  testOESVertexArrayObject();
<span id="line273"></span>  // Only the WEBGL_lose_context extension should be the same object after context lost.
<span id="line274"></span>  new_WEBGL_lose_context = reGetExtensionAndTestForProperty(gl, "WEBGL_lose_context", true);
<span id="line275"></span>}
<span id="line276"></span><br><br>///  this function is a callback function , which is attached to addeventlistener in above mention link//<br><br><span id="line277"></span>function testRestoredContext()
<span id="line278"></span>{
<span id="line279"></span>    debug("Test restored context");
<span id="line280"></span>    shouldBeFalse("contextRestoredEventFired");
<span id="line281"></span>    contextRestoredEventFired = true;
<span id="line282"></span>    shouldBeFalse("gl.isContextLost()");
<span id="line283"></span>    shouldBe("gl.getError()", "gl.NO_ERROR");
<span id="line284"></span>
<span id="line285"></span>    // Validate that using old resources fails.
<span id="line286"></span>    testResources(gl.INVALID_OPERATION);
<span id="line287"></span>
<span id="line288"></span>    testRendering();
<span id="line289"></span>
<span id="line290"></span>    // Validate new resources created in testRendering().
<span id="line291"></span>    testResources(gl.NO_ERROR);
<span id="line292"></span>
<span id="line293"></span>    testExtensions();
<span id="line294"></span>
<span id="line295"></span>    debug("");
<span id="line296"></span>}<br><br>Our Webkit Nightly Build  fails </span><br><span>    shouldBeNull("OES_vertex_array_object.createVertexArrayOES()")</span></pre>which it should fail , however khronous test case suite expects it to PASS , adn i tested this on chrome on windows, that passes :(<br><br><br>Kindly put some light here..<br>regards<br>rsadhu<br><br><div><br></div>regards<br><div>RSadhu</div>                                               </div></body>
</html>