<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - wglCreatePbufferARB handle attrib error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92020#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - wglCreatePbufferARB handle attrib error"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92020">bug 92020</a>
              from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
        <pre>Congratulations - seems like you found a bug in the emulator :-)

I would suggest taking a closer look into the emulator code.

To do things properly it should:
1. Create OpenGL context
2. Call wglGetProcAddress("wglGetExtensionsStringARB")
3. If non NULL, call the function to get a list of WGL extensions
4. Search for "WGL_ARB_render_texture" (the provider of WGL_TEXTURE_TARGET_ARB 
 and WGL_TEXTURE_FORMAT_ARB)
5. Act depending on its presence.

Here are a couple of links which should be useful

[1] <a href="https://www.opengl.org/wiki/Load_OpenGL_Functions#Windows_2">https://www.opengl.org/wiki/Load_OpenGL_Functions#Windows_2</a>
[2] <a href="https://www.opengl.org/registry/specs/ARB/wgl_render_texture.txt">https://www.opengl.org/registry/specs/ARB/wgl_render_texture.txt</a>


If you want to add support for the extension in mesa that'll be great. Check
the Developer info [3] page for more details.


Cheers,
Emil

[3] <a href="http://www.mesa3d.org/devinfo.html">http://www.mesa3d.org/devinfo.html</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>