diff options
author | Adam Jackson <ajax@redhat.com> | 2016-03-23 15:41:24 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-30 11:13:57 -0400 |
commit | 2e8781ead3067b195baec2e76a28091575679383 (patch) | |
tree | 66e1c22595b244106c57592df0f6d0b21857c79f /hw/xquartz | |
parent | e21de4bf3c5ff8cbb9c5ea023d04162e5e56b3df (diff) |
glx: Compute the GLX extension string from __glXScreenInit
Now that the enable bits are in the screen base class we can compute
this in one place, rather than making every backend do it.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xquartz')
-rw-r--r-- | hw/xquartz/GL/indirect.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c index 9eaeb9441..2d88ef284 100644 --- a/hw/xquartz/GL/indirect.c +++ b/hw/xquartz/GL/indirect.c @@ -542,20 +542,6 @@ __glXAquaScreenProbe(ScreenPtr pScreen) __glXInitExtensionEnableBits(screen->base.glx_enable_bits); __glXScreenInit(&screen->base, pScreen); - //__glXEnableExtension(screen->base.glx_enable_bits, "GLX_ARB_create_context"); - //__glXEnableExtension(screen->base.glx_enable_bits, "GLX_ARB_create_context_profile"); - - // Generate the GLX extensions string (overrides that set by __glXScreenInit()) - { - unsigned int buffer_size = - __glXGetExtensionString(screen->base.glx_enable_bits, NULL); - if (buffer_size > 0) { - screen->base.GLXextensions = xnfalloc(buffer_size); - __glXGetExtensionString(screen->base.glx_enable_bits, - screen->base.GLXextensions); - } - } - return &screen->base; } |