Mesa (master): glx/dri: use the implemented version of __DRIgetDrawableInfoExtension

Emil Velikov evelikov at kemper.freedesktop.org
Sun Feb 23 19:15:26 UTC 2014


Module: Mesa
Branch: master
Commit: fbbf5ec47169c3f8b9a43087e54ccd07f513431d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbbf5ec47169c3f8b9a43087e54ccd07f513431d

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Wed Feb 12 19:45:41 2014 +0000

glx/dri: use the implemented version of __DRIgetDrawableInfoExtension

... over the one provided by the headers.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/glx/dri_glx.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c
index 03ecc5b..8593750 100644
--- a/src/glx/dri_glx.c
+++ b/src/glx/dri_glx.c
@@ -299,8 +299,9 @@ __glXDRIGetDrawableInfo(__DRIdrawable * drawable,
 }
 
 static const __DRIgetDrawableInfoExtension getDrawableInfoExtension = {
-   {__DRI_GET_DRAWABLE_INFO, __DRI_GET_DRAWABLE_INFO_VERSION},
-   __glXDRIGetDrawableInfo
+   .base = {__DRI_GET_DRAWABLE_INFO, 1 },
+
+   .getDrawableInfo     = __glXDRIGetDrawableInfo
 };
 
 static const __DRIextension *loader_extensions[] = {




More information about the mesa-commit mailing list