Changeset 322


Ignore:
Timestamp:
03/20/09 17:36:03 (4 years ago)
Author:
gstaplin@…
Message:

Reorder some code so that each display connection gets initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AppleSGLX/trunk/apple_glx.c

    r296 r322  
    113113    int major, minor, patch; 
    114114 
     115    if(!XAppleDRIQueryExtension(dpy, &eventBase, &errorBase)) 
     116        return true; 
     117     
     118    if(!XAppleDRIQueryVersion(dpy, &major, &minor, &patch)) 
     119        return true; 
     120     
    115121    if(initialized) 
    116122        return false; 
     
    126132    (void)apple_glx_get_client_id(); 
    127133 
    128     if(!XAppleDRIQueryExtension(dpy, &eventBase, &errorBase)) 
    129         return true; 
    130      
    131     if(!XAppleDRIQueryVersion(dpy, &major, &minor, &patch)) 
    132         return true; 
    133    
    134134    XAppleDRISetSurfaceNotifyHandler(surface_notify_handler); 
    135135 
     136    /* This should really be per display. */ 
    136137    dri_event_base = eventBase; 
    137138    initialized = true; 
Note: See TracChangeset for help on using the changeset viewer.