Blender Git Loki

Git Commits -> Revision daf7f42

Revision daf7f42 by Julian Eisel (master)
February 24, 2021, 10:16 (GMT)
Fix line width broken for consecutive line draw calls

D9054 did multiple consecutive `immBegin()`/`immEnd()` draw calls to draw
multiple lines at varying thickness. This would only work for the first line,
then they'd all get a 1px thickness (at least on macOS).

Issue was that `wide_line_workaround_end()` called `immBindShader()` directly
to restore the old shader (which the workaround overrides). However this
doesn't set `imm->builtin_shader_bound` which has to be done for the workaround
to work on the next `immBegin()` call. Instead `immBindBuiltinProgram()` can be
called.

Differential Revision: https://developer.blender.org/D10520

Reviewed by: Cl�ment Foucault

Commit Details:

Full Hash: daf7f423642cad3e807ac35d669a404eac39a640
Parent Commit: 0fe25a6
Lines Changed: +5, -5

2 Modified Paths:

/source/blender/gpu/intern/gpu_immediate.cc (+4, -4) (Diff)
/source/blender/gpu/intern/gpu_immediate_private.hh (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021