Skip to content

gallium/hud: do not specify potentially invalid depth-range

Erik Faye-Lund requested to merge kusma/mesa:hud-legal_depth_range into master

Setting the depth-scale to 1 while leaving the depth-translation at 0 means our near-plane is at -1 in OpenGL semantics, which is out-of-range on some drivers. In particular, Zink has this limitation.

But since we'll only pass a zero z in here anyway, we might as well multiply it by zero, and get the same result. This avoids the problem.

Merge request reports

Loading