egl: drop unnecessary _eglGetDriver()
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6037>
This commit is contained in:

committed by
Marge Bot

parent
d24e3ea8cb
commit
f91851e615
@@ -48,16 +48,9 @@
|
||||
|
||||
extern _EGLDriver _eglDriver;
|
||||
|
||||
static _EGLDriver *
|
||||
_eglGetDriver(void)
|
||||
{
|
||||
return &_eglDriver;
|
||||
}
|
||||
|
||||
static _EGLDriver *
|
||||
_eglMatchAndInitialize(_EGLDisplay *disp)
|
||||
{
|
||||
if (_eglGetDriver())
|
||||
if (_eglDriver.Initialize(&_eglDriver, disp))
|
||||
return &_eglDriver;
|
||||
|
||||
@@ -98,7 +91,7 @@ _eglMatchDriver(_EGLDisplay *disp)
|
||||
__eglMustCastToProperFunctionPointerType
|
||||
_eglGetDriverProc(const char *procname)
|
||||
{
|
||||
if (_eglGetDriver() && _eglDriver.GetProcAddress)
|
||||
if (_eglDriver.GetProcAddress)
|
||||
return _eglDriver.GetProcAddress(&_eglDriver, procname);
|
||||
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user