[Mesa-dev] [PATCH 33/38] glx/drisw: constify __DRI*Extension handling

Emil Velikov emil.l.velikov at gmail.com
Wed Feb 12 17:17:59 PST 2014


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/glx/drisw_glx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 33d347a..eae376e 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -664,7 +664,7 @@ driswBindExtensions(struct drisw_screen *psc, const __DRIextension **extensions)
    /* FIXME: Figure out what other extensions can be ported here from dri2. */
    for (i = 0; extensions[i]; i++) {
       if ((strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0)) {
-	 psc->texBuffer = (__DRItexBufferExtension *) extensions[i];
+	 psc->texBuffer = (const __DRItexBufferExtension *) extensions[i];
 	 __glXEnableDirectExtension(&psc->base, "GLX_EXT_texture_from_pixmap");
       }
    }
@@ -699,11 +699,11 @@ driswCreateScreen(int screen, struct glx_display *priv)
 
    for (i = 0; extensions[i]; i++) {
       if (strcmp(extensions[i]->name, __DRI_CORE) == 0)
-	 psc->core = (__DRIcoreExtension *) extensions[i];
+	 psc->core = (const __DRIcoreExtension *) extensions[i];
       if (strcmp(extensions[i]->name, __DRI_SWRAST) == 0)
-	 psc->swrast = (__DRIswrastExtension *) extensions[i];
+	 psc->swrast = (const __DRIswrastExtension *) extensions[i];
       if (strcmp(extensions[i]->name, __DRI_COPY_SUB_BUFFER) == 0)
-	 psc->copySubBuffer = (__DRIcopySubBufferExtension *) extensions[i];
+	 psc->copySubBuffer = (const __DRIcopySubBufferExtension *) extensions[i];
    }
 
    if (psc->core == NULL || psc->swrast == NULL) {
-- 
1.8.5.4



More information about the mesa-dev mailing list