mesa/src
Olivier Lauffenburger f5c8bb1e00 vbo: fix glPrimitiveRestartNV crash inside a display list
glPrimitiveRestartNV crashes when it is called during the compilation
of a display list.

There are two reasons:
- ctx->Driver.CurrentSavePrimitive is not set to the current primitive
- save_PrimitiveRestartNV() calls _save_Begin() which only sets an
  OpenGL error, instead of calling vbo_save_NotifyBegin().

This patch correctly calls vbo_save_NotifyBegin() but it detects
the current primitive mode by looking at the latest saved primitive.

Additional work by Brian Paul

Signed-off-by: Olivier Lauffenburger <o.lauffenburger@topsolid.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101464
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-07-07 12:22:34 -06:00
..
amd ac/nir: Fix ordering of parameters for image atomic cmpswap intrinsics 2017-07-07 00:57:25 +02:00
broadcom vc4: automake: include vc4_cl_dump.h in 2017-07-04 09:37:19 +02:00
compiler glsl: check if any of the named builtins are available first 2017-07-05 20:05:53 -04:00
egl egl: android: Fix potential use of unitialized variable 2017-07-05 18:49:22 +01:00
gallium svga: adjust line subpixel position for HWv8 2017-07-07 12:04:17 -06:00
gbm gbm: add XBGR8888 support for dumb buffers 2017-06-30 08:44:19 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel: common: Fix link failure with standalone Android build 2017-07-05 18:49:21 +01:00
loader egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
mapi Update Khronos-supplied headers 2017-06-30 15:29:50 +02:00
mesa vbo: fix glPrimitiveRestartNV crash inside a display list 2017-07-07 12:22:34 -06:00
util util/disk_cache: fix a comment 2017-07-03 13:57:01 +02:00
vulkan Android: vulkan: fix build error due to extra ) 2017-06-08 07:26:04 -05:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00