Fix #106103: Resolve texture paint selection in Metal #106619

Merged
Jeroen Bakker merged 1 commits from Jason-Fielder/blender:Fix_106103 into main 2023-04-07 13:06:03 +02:00

1 Commits

Author SHA1 Message Date
Michael Parkin-White 92c66088c6 Fix #106103: Resolve texture paint selection in Metal
Issue caused by inconsistency in GPUFramebuffer viewport state
between Metal and OpenGL. The MTLFramebuffer code has been
modified such that framebuffer viewport/scissor state is retained
and only updated if attachments are modified during bind.

This is consistent with OpenGL. Previously, other updates to the
framebuffer in Metal would reset the viewport region, especially
if attachments were temporarily removed. This caused the color
picker selection to be misaligned.

Authored by Apple: Michael Parkin-White
2023-04-06 11:15:30 +01:00