Mesa (master): glx/drisw: use the implemented version of __DRIswrastLoaderExtension
Emil Velikov
evelikov at kemper.freedesktop.org
Sun Feb 23 19:15:26 UTC 2014
Module: Mesa
Branch: master
Commit: f92fbba11b4a74b5bce99a39f8688f7b29f7e609
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f92fbba11b4a74b5bce99a39f8688f7b29f7e609
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Wed Feb 12 20:08:07 2014 +0000
glx/drisw: use the implemented version of __DRIswrastLoaderExtension
... over the one provided by the headers.
Explicitly set extension members to improve clarity.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/glx/drisw_glx.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 13a4b96..33d347a 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -240,11 +240,12 @@ swrastGetImage(__DRIdrawable * read,
}
static const __DRIswrastLoaderExtension swrastLoaderExtension = {
- {__DRI_SWRAST_LOADER, __DRI_SWRAST_LOADER_VERSION},
- swrastGetDrawableInfo,
- swrastPutImage,
- swrastGetImage,
- swrastPutImage2,
+ .base = {__DRI_SWRAST_LOADER, 2 },
+
+ .getDrawableInfo = swrastGetDrawableInfo,
+ .putImage = swrastPutImage,
+ .getImage = swrastGetImage,
+ .putImage2 = swrastPutImage2,
};
static const __DRIextension *loader_extensions[] = {
More information about the mesa-commit
mailing list