From c11a45194ef54f0237ee58cc7ee391466a1f229b Mon Sep 17 00:00:00 2001 From: David Reveman Date: Mon, 2 Jan 2006 13:23:45 +0000 Subject: EGL backend fix --- ChangeLog | 8 ++++++++ src/egl/glitz_egl_config.c | 2 +- src/egl/glitz_egl_context.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c6e287d..3b57dae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-01-02 David Reveman + + * src/egl/glitz_egl_context.c (_glitz_egl_make_current): 0 -> EGL_READ. + (Dave Airlie) + + * src/egl/glitz_egl_config.c (_glitz_egl_format_compare): Track changes + to glitz_int_drawable_format_t. (Dave Airlie) + 2005-12-21 David Reveman * src/glitz.h (GLITZ_REVISION): Bump version to 0.5.2. diff --git a/src/egl/glitz_egl_config.c b/src/egl/glitz_egl_config.c index 16d924f..39c6e7c 100644 --- a/src/egl/glitz_egl_config.c +++ b/src/egl/glitz_egl_config.c @@ -45,7 +45,7 @@ _glitz_egl_format_compare (const void *elem1, for (; i < 2; i++) { - if (format[i]->color.fourcc != GLITZ_FOURCC_RGB) + if (format[i]->d.color.fourcc != GLITZ_FOURCC_RGB) score[i] -= 1000; if (format[i]->d.color.red_size) diff --git a/src/egl/glitz_egl_context.c b/src/egl/glitz_egl_context.c index 41486c5..8110dc2 100644 --- a/src/egl/glitz_egl_context.c +++ b/src/egl/glitz_egl_context.c @@ -122,7 +122,7 @@ _glitz_egl_make_current (void *abstract_drawable, drawable->base.height); if ((eglGetCurrentContext () != context->egl_context) || - (eglGetCurrentSurface ( 0 ) != drawable->egl_surface)) + (eglGetCurrentSurface ( EGL_READ ) != drawable->egl_surface)) { if (display_info->thread_info->cctx) { -- cgit v1.2.3