cast driHwLock assignment
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 May 2004 18:24:20 +0000 (18:24 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 May 2004 18:24:20 +0000 (18:24 +0000)
src/mesa/drivers/dri/i830/i830_context.c

index d4d7c2c66dc173c1fd025275772c540bed9a225e..7a44f0327fce787cc79d7984ce2256bc0847d102 100644 (file)
@@ -331,7 +331,8 @@ GLboolean i830CreateContext( const __GLcontextModes *mesaVis,
    /* Dri stuff */
    imesa->hHWContext = driContextPriv->hHWContext;
    imesa->driFd = sPriv->fd;
-   imesa->driHwLock = &sPriv->pSAREA->lock;
+   /* drmLock ptr = &drm_hw_lock_t */
+   imesa->driHwLock = (drmLock *) &sPriv->pSAREA->lock;
    imesa->hw_stencil = mesaVis->stencilBits && mesaVis->depthBits == 24;
 
    switch(mesaVis->depthBits) {