Blender Git Loki

Git Commits -> Revision 56e0249

Revision 56e0249 by Clément Foucault (master)
March 26, 2020, 20:10 (GMT)
GPU: Add workaround for faulty default attrib values on some drivers

On some drivers, the default values is not respected correctly.

To workaround this we create a small VBO that contains only 1 vec4 worth of
data and just bind it using glBindVertexBuffer to ensure 0 stride.

This fixes T75069 Instances not rendered correctly by workbench.

Commit Details:

Full Hash: 56e0249489ce89954a54d5006ddf4147dd02e208
Parent Commit: afb1a64
Lines Changed: +42, -2

3 Modified Paths:

/source/blender/gpu/GPU_shader_interface.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+37, -2) (Diff)
/source/blender/gpu/intern/gpu_shader_interface.c (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021