nigels-com / glew

The OpenGL Extension Wrangler Library
Other
2.61k stars 610 forks source link

ARB_texture_storage reported as unsupported if EXT_direct_state_access is not present #15

Open aejsmith opened 9 years ago

aejsmith commented 9 years ago

GLEW is reporting ARB_texture_storage as unsupported on OS X 10.9, even though it is. Upon further inspection it looks like it's doing so because the EXT_direct_state_access functions included in the extension aren't implemented.

Since the ARB_texture_storage spec only specifies those functions to exist when EXT_direct_state_access is present as well, I don't think GLEW should be marking the whole extension as unsupported in this case.

nigels-com commented 9 years ago

Yes, agreed. GLEW support for DSA has been a problem area.

nigels-com commented 7 years ago

Still looks like a legit issue:

$ bin/glewinfo  | grep ARB_texture_storage:
GL_ARB_texture_storage:                                        MISSING 
$ bin/glewinfo -version 3.2 -profile core | grep ARB_texture_storage:
GL_ARB_texture_storage:                                        MISSING [OK]

...

GL_ARB_texture_storage:                                        MISSING [OK]
-----------------------
  glTexStorage1D:                                              OK
  glTexStorage2D:                                              OK
  glTexStorage3D:                                              OK
  glTextureStorage1DEXT:                                       MISSING
  glTextureStorage2DEXT:                                       MISSING
  glTextureStorage3DEXT:                                       MISSING

GL_ARB_direct_state_access:                                    MISSING 
---------------------------
  glBindTextureUnit:                                           MISSING
  glBlitNamedFramebuffer:                                      MISSING
  glCheckNamedFramebufferStatus:                               MISSING
  glClearNamedBufferData:                                      MISSING