[GPU] Clear image buffer owners with format-correct fill values
This commit is contained in:
parent
8164636d99
commit
160521fd78
|
|
@ -834,7 +834,7 @@ public sealed unsafe partial class GuestImageCache
|
|||
byte stencilClear = 0;
|
||||
if (aspect == ImageAspectFlags.ColorBit)
|
||||
{
|
||||
if (!PackedClearValue.TryDecodeColor(image.Description.PixelFormat, packedClear, out colorClear))
|
||||
if (!PackedClearValue.TryDecodeBufferColor(image.Description.PixelFormat, packedClear, out colorClear))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue