diff --git a/ThunkLibs/libGL/libGL_Guest.cpp b/ThunkLibs/libGL/libGL_Guest.cpp index 65635cb8c..552bcc404 100644 --- a/ThunkLibs/libGL/libGL_Guest.cpp +++ b/ThunkLibs/libGL/libGL_Guest.cpp @@ -43,26 +43,30 @@ const std::unordered_map(procname)); if (TargetFuncIt == HostPtrInvokers.end()) { - // Extension found in host but not in our interface definition => treat as fatal error + // Extension found in host but not in our interface definition => Not fatal but warn about it + // Some games query leaked GLES symbols but don't use them + // glFrustrumf : ES 1.x function + // - Papers, Please + // - Dicey Dungeons fprintf(stderr, "glXGetProcAddress: not found %s\n", procname); - __builtin_trap(); + return nullptr; } LinkAddressToFunction((uintptr_t)Ret, TargetFuncIt->second); return Ret; - } + } - voidFunc *glXGetProcAddressARB(const GLubyte *procname) { - return glXGetProcAddress(procname); - } + voidFunc *glXGetProcAddressARB(const GLubyte *procname) { + return glXGetProcAddress(procname); + } } // libGL.so must pull in libX11.so as a dependency. Referencing some libX11