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

Commit 10af5010 authored by Aaron Kling's avatar Aaron Kling
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 5aed75e7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1145,6 +1145,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);

@@ -1229,6 +1233,7 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddressImpl(const char* procn
    }

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