egl: reset blob cache set/get functions on terminate
authorTapani Pälli <tapani.palli@intel.com>
Thu, 22 Aug 2019 07:49:36 +0000 (10:49 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 23 Aug 2019 05:14:08 +0000 (08:14 +0300)
Fixes errors seen with eglSetBlobCacheFuncsANDROID on Android when
running dEQP that terminates and reinitializes a display.

Fixes: 6f5b57093b3 "egl: add support for EGL_ANDROID_blob_cache"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/main/eglapi.c

index 7c9d2c92a0f5456f599240bb73a4e01b1c6581fd..0cd17cebf0333aac5ef7f943204316ce1ba3d6fa 100644 (file)
@@ -676,6 +676,10 @@ eglTerminate(EGLDisplay dpy)
       /* do not reset disp->Driver */
       disp->ClientAPIsString[0] = 0;
       disp->Initialized = EGL_FALSE;
+
+      /* Reset blob cache funcs on terminate. */
+      disp->BlobCacheSet = NULL;
+      disp->BlobCacheGet = NULL;
    }
 
    RETURN_EGL_SUCCESS(disp, EGL_TRUE);