Mesa (master): egl: Drop configs with unknown or invalide __DRI_ATTRIB_RENDER_TYPE
Ian Romanick
idr at kemper.freedesktop.org
Thu Jul 18 23:03:17 UTC 2013
Module: Mesa
Branch: master
Commit: ab1bded418821a48eac1a04288d17be88aac9eab
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab1bded418821a48eac1a04288d17be88aac9eab
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Thu Jul 18 15:13:45 2013 -0700
egl: Drop configs with unknown or invalide __DRI_ATTRIB_RENDER_TYPE
Some render types, such as floating-point, aren't valid with EGL.
Return NULL in those cases to drop them.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/egl/drivers/dri2/egl_dri2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index eb5aa31..52fcb3f 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -141,7 +141,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
else if (value & __DRI_ATTRIB_LUMINANCE_BIT)
value = EGL_LUMINANCE_BUFFER;
else
- /* not valid */;
+ return NULL;
_eglSetConfigKey(&base, EGL_COLOR_BUFFER_TYPE, value);
break;
More information about the mesa-commit
mailing list