<div>the original code worked because it was called after</div><div><br></div><div>    result = eglMakeCurrent(display, surface, surface, context);</div><div><br></div><div><br></div><div>I wanted to use OSMesa.</div><div><br></div><div>After  I changed the call  to OSMesaMakeCurrent.glGetString() returned NULL.</div><div><br></div><div><br></div><div>Please advise.</div><div><br></div><div>thanks</div><div>h</div><div><br></div>