summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-12 20:08:07 +0000
committerEmil Velikov <[email protected]>2014-02-23 16:42:17 +0000
commitf92fbba11b4a74b5bce99a39f8688f7b29f7e609 (patch)
treeb7920e1a7faeb75ed8ccfa27a33c10e5b65afccc /src
parentf6537d06089f991678b2afb7033aaf07bc4c9d50 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/drisw_glx.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 13a4b96a1fb..33d347a6e16 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[] = {