mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
egl: replace _EGLDriver with _EGLDisplay->Driver in _eglQuerySurface()
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>
This commit is contained in:
parent
f3aa7b2e1b
commit
e87e68d836
1 changed files with 1 additions and 0 deletions
|
|
@ -534,6 +534,7 @@ _eglQuerySurface(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surface,
|
||||||
return _eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface");
|
return _eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface");
|
||||||
|
|
||||||
_EGLContext *ctx = _eglGetCurrentContext();
|
_EGLContext *ctx = _eglGetCurrentContext();
|
||||||
|
const _EGLDriver *drv = disp->Driver;
|
||||||
EGLint result = drv->QueryBufferAge(drv, disp, surface);
|
EGLint result = drv->QueryBufferAge(drv, disp, surface);
|
||||||
/* error happened */
|
/* error happened */
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue