mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
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:
parent
d24e3ea8cb
commit
f91851e615
1 changed files with 3 additions and 10 deletions
|
|
@ -48,18 +48,11 @@
|
|||
|
||||
extern _EGLDriver _eglDriver;
|
||||
|
||||
static _EGLDriver *
|
||||
_eglGetDriver(void)
|
||||
{
|
||||
return &_eglDriver;
|
||||
}
|
||||
|
||||
static _EGLDriver *
|
||||
_eglMatchAndInitialize(_EGLDisplay *disp)
|
||||
{
|
||||
if (_eglGetDriver())
|
||||
if (_eglDriver.Initialize(&_eglDriver, disp))
|
||||
return &_eglDriver;
|
||||
if (_eglDriver.Initialize(&_eglDriver, disp))
|
||||
return &_eglDriver;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue