Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021