summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-08-22 10:49:36 +0300
committerTapani Pälli <[email protected]>2019-08-23 08:14:08 +0300
commit3e03a3fc5315b488468b28aa40a7e9416f506520 (patch)
tree1bd178b5b403b6a589befcce51719d7acc3a74d9 /src/egl
parent2d799250346331a93b21678dc5605cff74dfa3a1 (diff)
egl: reset blob cache set/get functions on terminate
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 <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 7c9d2c92a0f..0cd17cebf03 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -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);