Page MenuHome

Fix T86450: Random User Interface Colour Change (regression)
ClosedPublic

Authored by Campbell Barton (campbellbarton) on Apr 30 2021, 9:15 AM.

Details

Summary

Resolves an occasional glitch/flicker drawing the interface.

Regression in 405a5d3bd7ada5dd5af605b59ba07c7144f144a2
which removed shader unbinding when the batch is drawn.

GPU_shader_bind could running with the srgb uniform in an unexpected state.


To reproduce the bug, see: T86450#1154108 (I couldn't reproduce the steps in the original report).

Diff Detail

Repository
rB Blender
Branch
T (branched from master)
Build Status
Buildable 14318
Build 14318: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Apr 30 2021, 9:15 AM
Campbell Barton (campbellbarton) created this revision.
Campbell Barton (campbellbarton) retitled this revision from Fix T86450: Random User Interface Colour Change (2.91+ Regression?) to Fix T86450: Random User Interface Colour Change (regression).
Campbell Barton (campbellbarton) added inline comments.
source/blender/gpu/intern/gpu_shader.cc
507–512

The change to run GPU_matrix_bind in the else block wont cause issues as the first call clears the dirty flag.

This revision is now accepted and ready to land.May 1 2021, 12:49 AM