Blender Git Loki

Git Commits -> Revision 8948f73

Revision 8948f73 by Campbell Barton (master)
January 28, 2021, 10:53 (GMT)
Fix T81334: Python view-port drawing depth-test regression

Since 216d78687d2b9468b05fb598d1cef0b8424a40d2 the depth function
(glDepthFunc) was left in an undefined state for drawing callbacks that
use the `bgl` module.

This meant enabling depth-test from Python's bgl module also needed
to set the depth function (which previously wasn't necessary).

Set the depth function as part of GPU_bgl_start

Commit Details:

Full Hash: 8948f73784cb818689ba38aa9ae5008eb3c8290b
Parent Commit: 51c8d53
Lines Changed: +14, -0

1 Modified Path:

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