commit 1b7cb81995bca0767d37611ad08d12ae672c0a6d Author: Matwey V. Kornilov Date: Wed Oct 16 15:24:28 2013 +0400 i915: fix BadAlloc at CreateContext for i830 There is missed initialization of success variable when i830 detected. i830CreateContext has never been called. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56042 Reported-by: goetzchrist@gmail.com Signed-off-by: Matwey V. Kornilov diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 00a1b01..48df752 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -789,6 +789,7 @@ intelCreateContext(gl_api api, major_version, minor_version, error, sharedContextPrivate); } else { + success = true; switch (api) { case API_OPENGL: if (major_version > 1 || minor_version > 3) {