mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/graphicsdriver/metal: bug fix: go vet failed
view must not be copied. Updates #2282
This commit is contained in:
parent
35f597e682
commit
bb406c9b8f
@ -854,7 +854,7 @@ func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, srcIDs [graphics.
|
|||||||
noStencil,
|
noStencil,
|
||||||
} {
|
} {
|
||||||
var err error
|
var err error
|
||||||
rpss[stencil], err = g.shaders[shaderID].RenderPipelineState(g.view, mode, stencil, dst.screen)
|
rpss[stencil], err = g.shaders[shaderID].RenderPipelineState(&g.view, mode, stencil, dst.screen)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ func (s *Shader) init(device mtl.Device) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Shader) RenderPipelineState(view view, compositeMode graphicsdriver.CompositeMode, stencilMode stencilMode, screen bool) (mtl.RenderPipelineState, error) {
|
func (s *Shader) RenderPipelineState(view *view, compositeMode graphicsdriver.CompositeMode, stencilMode stencilMode, screen bool) (mtl.RenderPipelineState, error) {
|
||||||
key := shaderRpsKey{
|
key := shaderRpsKey{
|
||||||
compositeMode: compositeMode,
|
compositeMode: compositeMode,
|
||||||
stencilMode: stencilMode,
|
stencilMode: stencilMode,
|
||||||
|
Loading…
Reference in New Issue
Block a user