Fix a == vs !- typo for glx_enable_extension
authorJon Smirl <jonsmirl@gmail.com>
Fri, 29 Jul 2005 00:19:36 +0000 (00:19 +0000)
committerJon Smirl <jonsmirl@gmail.com>
Fri, 29 Jul 2005 00:19:36 +0000 (00:19 +0000)
src/mesa/drivers/dri/i830/i830_screen.c
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/mach64/mach64_screen.c
src/mesa/drivers/dri/mga/mga_xmesa.c
src/mesa/drivers/dri/r128/r128_screen.c
src/mesa/drivers/dri/r200/r200_screen.c
src/mesa/drivers/dri/r300/radeon_screen.c
src/mesa/drivers/dri/unichrome/via_screen.c

index af5049d62966c8de43bec398e22894c8494ec586..4d47f1618186b7ded6e3ffff50f2cafa97941cb8 100644 (file)
@@ -282,7 +282,7 @@ static GLboolean i830InitDriver(__DRIscreenPrivate *sPriv)
    }
 #endif
 
-   if ( glx_enable_extension == NULL ) {
+   if ( glx_enable_extension != NULL ) {
       (*glx_enable_extension)( psc, "GLX_SGI_make_current_read" );
    }
 
index f9c618e6441d101c2174fb6b1542f14086ed967e..6c3f2f577447597d48dccd623a4d73ab4b03c80a 100644 (file)
@@ -195,7 +195,7 @@ static GLboolean intelInitDriver(__DRIscreenPrivate *sPriv)
       }
    }
 
-   if (glx_enable_extension == NULL) {
+   if (glx_enable_extension != NULL) {
       (*glx_enable_extension)( psc, "GLX_SGI_make_current_read" );
       (*glx_enable_extension)( psc, "GLX_MESA_allocate_memory" );
    }
index e87c87c23979436194793cbb1fd5272d28afb41b..0bd8d6eb77d2ab6e870173149d9363a1c7421a0d 100644 (file)
@@ -314,7 +314,7 @@ mach64CreateScreen( __DRIscreenPrivate *sPriv )
 
    mach64Screen->driScreen = sPriv;
 
-   if ( glx_enable_extension == NULL ) {
+   if ( glx_enable_extension != NULL ) {
       if ( mach64Screen->irq != 0 ) {
         (*glx_enable_extension)( psc, "GLX_SGI_swap_control" );
         (*glx_enable_extension)( psc, "GLX_SGI_video_sync" );
index cf3db99b937d62eaa648780e2ef0995a55bf055c..1eb03ef0ec11fe9053da57a4da4f0773c92199a5 100644 (file)
@@ -229,7 +229,7 @@ mgaInitDriver(__DRIscreenPrivate *sPriv)
       }
    }
 
-   if ( glx_enable_extension == NULL ) {
+   if ( glx_enable_extension != NULL ) {
       (*glx_enable_extension)( psc, "GLX_MESA_swap_control" );
       (*glx_enable_extension)( psc, "GLX_MESA_swap_frame_usage" );
       (*glx_enable_extension)( psc, "GLX_SGI_make_current_read" );
index c1ec8cf621969e41be2f24fa785f9394896f7523..52b9b7bcbcc508cea8ee1caf432e7430f9318e18 100644 (file)
@@ -214,7 +214,7 @@ r128CreateScreen( __DRIscreenPrivate *sPriv )
 
    r128Screen->driScreen = sPriv;
 
-   if ( glx_enable_extension == NULL ) {
+   if ( glx_enable_extension != NULL ) {
       if ( r128Screen->irq != 0 ) {
         (*glx_enable_extension)( psc, "GLX_SGI_swap_control" );
         (*glx_enable_extension)( psc, "GLX_SGI_video_sync" );
index e68f7dae8ad890fd17c407c4644630784f260e8a..480ee64f00b81b38bdc662cc0f4c1283ebabd0f8 100644 (file)
@@ -463,7 +463,7 @@ r200CreateScreen( __DRIscreenPrivate *sPriv )
    screen->driScreen = sPriv;
    screen->sarea_priv_offset = dri_priv->sarea_priv_offset;
 
-   if ( glx_enable_extension == NULL ) {
+   if ( glx_enable_extension != NULL ) {
       if ( screen->irq != 0 ) {
         (*glx_enable_extension)( psc, "GLX_SGI_swap_control" );
         (*glx_enable_extension)( psc, "GLX_SGI_video_sync" );
index 466e6b0409e6315edeac5265f5660885e3a89b01..2893a9824c1ae2dbf161e35fa6be34108d7622f1 100644 (file)
@@ -582,7 +582,7 @@ static radeonScreenPtr radeonCreateScreen(__DRIscreenPrivate * sPriv)
        screen->driScreen = sPriv;
        screen->sarea_priv_offset = dri_priv->sarea_priv_offset;
 
-       if (glx_enable_extension == NULL) {
+       if (glx_enable_extension != NULL) {
                if (screen->irq != 0) {
                        (*glx_enable_extension) (psc, "GLX_SGI_swap_control");
                        (*glx_enable_extension) (psc, "GLX_SGI_video_sync");
@@ -597,7 +597,7 @@ static radeonScreenPtr radeonCreateScreen(__DRIscreenPrivate * sPriv)
        sPriv->psc->freeMemory = (void *)r200FreeMemoryMESA;
        sPriv->psc->memoryOffset = (void *)r200GetMemoryOffsetMESA;
 
-       if (glx_enable_extension == NULL) {
+       if (glx_enable_extension != NULL) {
                (*glx_enable_extension) (psc, "GLX_MESA_allocate_memory");
        }
 #endif
index b718fd446abbbd4ce681bfc031c7ed7e0fe342d4..924818c1242354c5ef8a9b5b67a197a2992bf60a 100644 (file)
@@ -170,7 +170,7 @@ viaInitDriver(__DRIscreenPrivate *sPriv)
 
     viaScreen->sareaPrivOffset = gDRIPriv->sarea_priv_offset;
 
-    if ( glx_enable_extension == NULL ) {
+    if ( glx_enable_extension != NULL ) {
        if ( viaScreen->irqEnabled ) {
          (*glx_enable_extension)( psc, "GLX_SGI_swap_control" );
          (*glx_enable_extension)( psc, "GLX_SGI_video_sync" );