Files
mesa/src/glx
Kenneth Graunke 10a6fde333 glx/dri: Initialize api even if num_attribs == 0.
Both dri2_create_context_attribs and drisw_create_context_attribs call
dri2_convert_glx_attribs, expecting it to fill in *api on success.

However, when num_attribs == 0, it was returning true without setting
*api, causing the caller to use an uninitialized value.

Tested-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2012-01-11 12:13:49 -08:00
..
2011-06-20 17:19:00 -07:00
2011-03-29 12:04:54 +02:00
2011-04-26 14:54:41 -06:00
2012-01-10 17:42:02 +00:00
2010-10-27 10:49:33 +08:00