No need to add a function that returns `false` only to be cast into
a pointer, we can just use the existing `return NULL` :)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
__eglMustCastToProperFunctionPointerType
_eglGetDriverProc(const char *procname)
{
- if (_eglGetDriver())
+ if (_eglGetDriver() && _eglDriver->API.GetProcAddress)
return _eglDriver->API.GetProcAddress(_eglDriver, procname);
return NULL;
drv->API.WaitClient = (void*) _eglReturnFalse;
drv->API.WaitNative = (void*) _eglReturnFalse;
- drv->API.GetProcAddress = (void*) _eglReturnFalse;
drv->API.GetSyncAttrib = _eglGetSyncAttrib;
}