~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to overlay_gl/overlay.c

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig
  • Date: 2009-12-10 20:29:29 UTC
  • mfrom: (9.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091210202929-3096zttdt0ie9kw6
Tags: 1.2.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
static void resolveOpenGL() {
109
109
        RESOLVE(glXSwapBuffers);
 
110
        
 
111
        if (! oglXSwapBuffers) {
 
112
                void *lib = dlopen("libGL.so.1", RTLD_GLOBAL | RTLD_NOLOAD);
 
113
                if (! lib)
 
114
                        return;
 
115
                RESOLVE(glXSwapBuffers);
 
116
                if (! oglXSwapBuffers)
 
117
                        dlclose(lib);
 
118
        }
 
119
        
110
120
        RESOLVE(glXGetProcAddressARB);
111
121
        RESOLVE(glXGetProcAddress);
112
122
}