go vet error check

This commit is contained in:
Zyko 2024-04-10 21:11:32 +02:00
parent 6a8c00e0aa
commit ced0c62827

View File

@ -218,7 +218,9 @@ func (g *Graphics) DrawTriangles(dstIDs [graphics.ShaderDstImageCount]graphicsdr
if firstTarget == -1 {
firstTarget = i
}
dst.ensureFramebuffer()
if err := dst.ensureFramebuffer(); err != nil {
return err
}
dsts[i] = dst
targetCount++
}