projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37c367
)
egl: Drop configs with unknown or invalide __DRI_ATTRIB_RENDER_TYPE
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 18 Jul 2013 22:13:45 +0000
(15:13 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 18 Jul 2013 23:03:42 +0000
(16:03 -0700)
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@intel.com>
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index eb5aa3144faae958b911ff0a3fbc54137fdd13e6..52fcb3f95323f4832ac065bb7ca2e51361abf0e5 100644
(file)
--- 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;