• Brian Nguyen's avatar
    Track number of clients using GLdispatch · 4ccb62cd
    Brian Nguyen authored
    
    
    Theoretically multiple clients (libGLX and a future libEGL) may call
    into __glDispatchInit() to set up dispatching, and we will want to
    refcount GLdispatch to determine when dispatch teardown should occur.
    So replace the global boolean 'initialized' with a counter
    'clientRefcount' which tracks the number of clients using GLdispatch.
    
    Signed-off-by: default avatarBrian Nguyen <brnguyen@nvidia.com>
    4ccb62cd