[Mesa-dev] [PATCH 36/38] glx/dri3: constify __DRI*Extension handling

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


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

diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 8fbf125..0794ad8 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -1566,17 +1566,17 @@ dri3_bind_extensions(struct dri3_screen *psc, struct glx_display * priv,
 
    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");
       }
 
       if ((strcmp(extensions[i]->name, __DRI2_FLUSH) == 0)) {
-         psc->f = (__DRI2flushExtension *) extensions[i];
+         psc->f = (const __DRI2flushExtension *) extensions[i];
          /* internal driver extension, no GL extension exposed */
       }
 
       if ((strcmp(extensions[i]->name, __DRI2_CONFIG_QUERY) == 0))
-         psc->config = (__DRI2configQueryExtension *) extensions[i];
+         psc->config = (const __DRI2configQueryExtension *) extensions[i];
 
       if (strcmp(extensions[i]->name, __DRI2_ROBUSTNESS) == 0)
          __glXEnableDirectExtension(&psc->base,
@@ -1659,9 +1659,9 @@ dri3_create_screen(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_IMAGE_DRIVER) == 0)
-         psc->image_driver = (__DRIimageDriverExtension *) extensions[i];
+         psc->image_driver = (const __DRIimageDriverExtension *) extensions[i];
    }
 
 
@@ -1691,7 +1691,7 @@ dri3_create_screen(int screen, struct glx_display * priv)
 
    for (i = 0; extensions[i]; i++) {
       if (strcmp(extensions[i]->name, __DRI_IMAGE) == 0)
-         psc->image = (__DRIimageExtension *) extensions[i];
+         psc->image = (const __DRIimageExtension *) extensions[i];
    }
 
    if (psc->image == NULL) {
-- 
1.8.5.4



More information about the mesa-dev mailing list