graphicsdriver/metal: Bug fix: Wrong usage of RenderPipelineState for screen

This commit is contained in:
Hajime Hoshi 2019-02-17 21:41:47 +09:00
parent 84b1c282ff
commit d724e17032

View File

@ -611,7 +611,7 @@ func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode
}
rce := d.cb.MakeRenderCommandEncoder(rpd)
if d.dst.screen {
if d.dst.screen && filter == graphics.FilterScreen {
rce.SetRenderPipelineState(d.screenRPS)
} else {
rce.SetRenderPipelineState(d.rpss[rpsKey{