Skip to content
Snippets Groups Projects
Commit f5c8bb1e authored by Olivier Lauffenburger's avatar Olivier Lauffenburger Committed by Brian Paul
Browse files

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: default avatarOlivier Lauffenburger <o.lauffenburger@topsolid.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101464


Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
Reviewed-by: default avatarCharmaine Lee <charmainel@vmware.com>
parent 1d0bdfb5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment