diff options
author | Ian Romanick <[email protected]> | 2013-07-18 15:13:45 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-07-18 16:03:42 -0700 |
commit | 74cbe6e49764aa3b059481344a77cdfdb8376d69 (patch) | |
tree | d4997517cbecf6ca822337aa7ca82df9c43f018a /src/egl | |
parent | c37c367d389d083b91521e1378942d83122d5329 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | 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 eb5aa3144fa..52fcb3f9532 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; |