mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] egl: handle eglQuerySurface(EGL_BUFFER_AGE_EXT) error
This commit is contained in:
parent
88a95aeab0
commit
15066c7345
@ -906,7 +906,11 @@ inline static EGLint egl_bufferAge(struct Inst * this)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
EGLint result;
|
EGLint result;
|
||||||
eglQuerySurface(this->display, this->surface, EGL_BUFFER_AGE_EXT, &result);
|
if (eglQuerySurface(this->display, this->surface, EGL_BUFFER_AGE_EXT, &result) == EGL_FALSE)
|
||||||
|
{
|
||||||
|
DEBUG_ERROR("eglQuerySurface(EGL_BUFFER_AGE_EXT) failed");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user