Mesa (master): glx/dri3: set the implemented version of __DRIimageLoaderExtension

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


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

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Wed Feb 12 18:46:32 2014 +0000

glx/dri3: set the implemented version of __DRIimageLoaderExtension

... over the one provided by the spec.
Currently both versions are identical, but that is not
guaranteed to be the case in the future.

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

---

 src/glx/dri3_glx.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 70ec057..8fbf125 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -1307,9 +1307,10 @@ dri3_get_buffers(__DRIdrawable *driDrawable,
 /* The image loader extension record for DRI3
  */
 static const __DRIimageLoaderExtension imageLoaderExtension = {
-   {__DRI_IMAGE_LOADER, __DRI_IMAGE_LOADER_VERSION},
-   .getBuffers = dri3_get_buffers,
-   .flushFrontBuffer = dri3_flush_front_buffer,
+   .base = { __DRI_IMAGE_LOADER, 1 },
+
+   .getBuffers          = dri3_get_buffers,
+   .flushFrontBuffer    = dri3_flush_front_buffer,
 };
 
 /** dri3_swap_buffers




More information about the mesa-commit mailing list