mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
all: remove unused fields, functions and add missing error handling
Credit to staticcheck.io. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-8
@@ -107,14 +107,6 @@ const (
|
||||
pathBatchSize = 10000
|
||||
)
|
||||
|
||||
const (
|
||||
attribPathCorner = 0
|
||||
attribPathMaxY = 1
|
||||
attribPathFrom = 2
|
||||
attribPathCtrl = 3
|
||||
attribPathTo = 4
|
||||
)
|
||||
|
||||
func newPather(ctx backend.Device) *pather {
|
||||
return &pather{
|
||||
ctx: ctx,
|
||||
@@ -217,6 +209,9 @@ func (s *fboSet) resize(ctx backend.Device, sizes []image.Point) {
|
||||
}
|
||||
tex, err := ctx.NewTexture(backend.TextureFormatFloat, sz.X, sz.Y, backend.FilterNearest, backend.FilterNearest,
|
||||
backend.BufferBindingTexture|backend.BufferBindingFramebuffer)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fbo, err := ctx.NewFramebuffer(tex, 0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user