Fix GLX build

[airlied: use bool instead of int]
Fixes: fb4f75 ("virgl,egl: add check for EGL_KHR_gl_colorspace")
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gurchetan Singh 6 years ago committed by Dave Airlie
parent 3bb14a39af
commit 162d4bf38c
  1. 7
      src/virglrenderer.c

@ -203,9 +203,12 @@ int virgl_renderer_resource_get_info(int res_handle,
int virgl_has_gl_colorspace(void) int virgl_has_gl_colorspace(void)
{ {
bool egl_colorspace = false;
#ifdef HAVE_EPOXY_EGL_H
egl_colorspace = virgl_has_egl_khr_gl_colorspace(egl_info);
#endif
return use_context == CONTEXT_GLX || return use_context == CONTEXT_GLX ||
(use_context == CONTEXT_EGL && (use_context == CONTEXT_EGL && egl_colorspace);
virgl_has_egl_khr_gl_colorspace(egl_info));
} }
void virgl_renderer_get_cap_set(uint32_t cap_set, uint32_t *max_ver, void virgl_renderer_get_cap_set(uint32_t cap_set, uint32_t *max_ver,

Loading…
Cancel
Save