fix clear color conversion

main
cosmonaut 2022-02-24 22:06:29 -08:00
parent a88d8dabbb
commit e5213da686
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,10 @@ namespace MoonWorks.Graphics
renderTarget = renderTarget.Handle, renderTarget = renderTarget.Handle,
clearColor = new Refresh.Vec4 clearColor = new Refresh.Vec4
{ {
x = clearColor.R, x = clearColor.R / 255f,
y = clearColor.G, y = clearColor.G / 255f,
z = clearColor.B, z = clearColor.B / 255f,
w = clearColor.A w = clearColor.A / 255f
}, },
loadOp = (Refresh.LoadOp) loadOp, loadOp = (Refresh.LoadOp) loadOp,
storeOp = (Refresh.StoreOp) storeOp storeOp = (Refresh.StoreOp) storeOp