egl: drop unused _EGLDriver from CreateWaylandBufferFromImageWL()
[mesa.git] / src / egl / main / egldispatchstubs.c
index bfc3195c77918b9231d2415ebe163bff0cc4c4b3..96708aeb0dc316e20e0816794df0431495f6fb16 100644 (file)
@@ -59,6 +59,11 @@ static __eglMustCastToProperFunctionPointerType FetchVendorFunc(__EGLvendorInfo
     }
     if (func == NULL) {
         if (errorCode != EGL_SUCCESS) {
+            // Since we have no vendor, the follow-up eglGetError() call will
+            // end up using the GLVND error code. Set it here.
+            if (vendor == NULL) {
+                exports->setEGLError(errorCode);
+            }
             _eglError(errorCode, __EGL_DISPATCH_FUNC_NAMES[index]);
         }
         return NULL;