From 262b767023eea507352389064468d59b1957f24c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 10 Jan 2019 13:12:40 +0000 Subject: [PATCH] egl: drop `_eglReturnFalse()` fallbacks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit v2: drop them altogether, they should never get called in the first place (Emil) Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Reviewed-by: Tapani Pälli --- src/egl/main/eglfallbacks.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 336ca7aee2e..08ffab3072c 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -35,13 +35,6 @@ #include "eglsync.h" -static EGLBoolean -_eglReturnFalse(void) -{ - return EGL_FALSE; -} - - /** * Plug all the available fallback routines into the given driver's * dispatch table. @@ -53,29 +46,12 @@ _eglInitDriverFallbacks(_EGLDriver *drv) drv->API.ChooseConfig = _eglChooseConfig; drv->API.GetConfigAttrib = _eglGetConfigAttrib; - drv->API.CreateContext = (void*) _eglReturnFalse; - drv->API.DestroyContext = (void*) _eglReturnFalse; - drv->API.MakeCurrent = (void*) _eglReturnFalse; drv->API.QueryContext = _eglQueryContext; - drv->API.CreateWindowSurface = (void*) _eglReturnFalse; - drv->API.CreatePixmapSurface = (void*) _eglReturnFalse; - drv->API.CreatePbufferSurface = (void*) _eglReturnFalse; - drv->API.CreatePbufferFromClientBuffer = - (void*) _eglReturnFalse; - drv->API.DestroySurface = (void*) _eglReturnFalse; drv->API.QuerySurface = _eglQuerySurface; drv->API.SurfaceAttrib = _eglSurfaceAttrib; - drv->API.BindTexImage = (void*) _eglReturnFalse; - drv->API.ReleaseTexImage = (void*) _eglReturnFalse; - drv->API.CopyBuffers = (void*) _eglReturnFalse; - drv->API.SwapBuffers = (void*) _eglReturnFalse; - drv->API.SetDamageRegion = (void*) _eglReturnFalse; drv->API.SwapInterval = _eglSwapInterval; - drv->API.WaitClient = (void*) _eglReturnFalse; - drv->API.WaitNative = (void*) _eglReturnFalse; - drv->API.GetSyncAttrib = _eglGetSyncAttrib; } -- 2.30.2