Blender Git Loki

Git Commits -> Revision c971e81

Revision c971e81 by Clément Foucault (master)
March 10, 2020, 03:47 (GMT)
Fix T74536: Grease pencil immediately crashes on macOS

It seems like OSX drivers are using standard attributes for passing
gl_VertexID and gl_InstanceID to the vertex shader, and count them in the
limit of MAX_VERTEX_ATTRIBS.

This patch make sure to never use more than 13 attributes by packing some
attributes together.

Commit Details:

Full Hash: c971e812d5e2e5c45ed262ccd3bccfcf547b9ff7
Parent Commit: bf1b323
Lines Changed: +81, -49

3 Modified Paths:

/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl (+48, -35) (Diff)
/source/blender/draw/engines/overlay/shaders/edit_gpencil_vert.glsl (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_gpencil.c (+31, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021