Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c998e290 authored by Aaron Kling's avatar Aaron Kling Committed by Jan Altensen
Browse files

EGL: nvidia: Don't use extension map

The nvidia egl implementation exposes desktop opengl, which has
far too many extentions for the map to handle.

Change-Id: Id925c66fdf98108af126e9e02a38c696157576f2
parent ef6858c8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1150,6 +1150,10 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddressImpl(const char* procn
    addr = findBuiltinWrapper(procname);
    if (addr) return addr;

#ifdef NV_ANDROID_FRAMEWORK_ENHANCEMENTS
    if (gEGLImpl.dso && gEGLImpl.egl.eglGetProcAddress)
        addr = gEGLImpl.egl.eglGetProcAddress(procname);
#else
    // this protects accesses to sGLExtensionMap, sGLExtensionSlot, and sGLExtensionSlotMap
    pthread_mutex_lock(&sExtensionMapMutex);

@@ -1234,6 +1238,7 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddressImpl(const char* procn
    }

    pthread_mutex_unlock(&sExtensionMapMutex);
#endif
    return addr;
}