Fix a warning in the EGL winsys

_cogl_egl_query_wayland_buffer was using _COGL_RETURN_IF_FAIL but the
function needs to return a CoglBool so it was giving a warning.

(cherry picked from commit d0290eb19fc9bf56fb24f8eab573e19966ea7e1a)
This commit is contained in:
Neil Roberts 2013-05-30 13:57:56 +01:00
parent 8282cee367
commit 2ed926120d

View File

@ -1051,7 +1051,7 @@ _cogl_egl_query_wayland_buffer (CoglContext *ctx,
{ {
CoglRendererEGL *egl_renderer = ctx->display->renderer->winsys; CoglRendererEGL *egl_renderer = ctx->display->renderer->winsys;
_COGL_RETURN_IF_FAIL (egl_renderer->pf_eglQueryWaylandBuffer); _COGL_RETURN_VAL_IF_FAIL (egl_renderer->pf_eglQueryWaylandBuffer, FALSE);
return egl_renderer->pf_eglQueryWaylandBuffer (egl_renderer->edpy, return egl_renderer->pf_eglQueryWaylandBuffer (egl_renderer->edpy,
buffer, buffer,