egl: drop `_eglReturnFalse()` fallbacks
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 10 Jan 2019 13:12:40 +0000 (13:12 +0000)
committerEric Engestrom <eric@engestrom.ch>
Sat, 22 Jun 2019 15:17:42 +0000 (15:17 +0000)
v2: drop them altogether, they should never get called in the
    first place (Emil)

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/main/eglfallbacks.c

index 336ca7aee2e6016b0e1af5c0f551eec66899ff33..08ffab3072c45f42742ad93989de2b4d78eb79d5 100644 (file)
 #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;
 }