mesa/src
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
..
egl wayland-drm: Drop the non-premul formats, use format codes from drm_fourcc.h 2012-01-11 14:24:00 -05:00
gallium svga: don't reference count svga_sampler_view's texture 2012-01-11 13:10:43 -07:00
gbm
getopt
glsl mesa: Move transform feedback error check to reduce array overflow risk. 2012-01-11 07:57:56 -08:00
glu glu: remove BeOS define as BeOS is not longer a target platform 2011-12-27 09:16:51 -07:00
glx glx/dri: Initialize api even if num_attribs == 0. 2012-01-11 12:13:49 -08:00
mapi Regenerate files from previous commits 2011-12-13 16:07:17 -08:00
mesa i965: Fix compiler warning from uninitialized "success" value. 2012-01-11 12:07:15 -08:00
Makefile
SConscript scons: Unbreak mingw build. 2011-09-20 20:50:48 +01:00