Fix #106773: resolve Metal grease pencil fill #106857

Merged
Jeroen Bakker merged 2 commits from Jason-Fielder/blender:Fix_106773 into main 2023-04-13 08:23:46 +02:00

2 Commits

Author SHA1 Message Date
Jason Fielder f069414946 Merge branch 'main' into Fix_106773 2023-04-12 13:20:05 +02:00
Michael Parkin-White 7eef2a3e55 Fix #106773: resolve Metal grease pencil fill
Changes to viewport state to resolve texture paint color
selection introduced a side effect wherein the correct
attachment size of a framebuffer was reset. This size is
needed when scissor regions are disabled to return the
state to its correct default. When this default was wrong,
certain operators would have incorrect offsets.

To maintain consistency with the OpenGL backend, the
Metal backend independently tracks the raw attachment
size using default_width/height. This will also reset to zero
when attachments are all removed, unlike other state which
may be retained.

Authored by Apple: Michael Parkin-White
2023-04-12 12:16:27 +01:00