mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
all: delete unused variables
Found by Daniel Martí. Fixes gio#24 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -304,9 +304,8 @@ func (g *GPU) renderLoop(glctx gl.Context) error {
|
||||
ops := frame.ops
|
||||
// Upload path data to GPU before ack'ing the frame data for re-use.
|
||||
for _, p := range ops.pathOps {
|
||||
data, exists := g.pathCache.get(p.pathKey)
|
||||
if !exists {
|
||||
data = buildPath(r.ctx, p.pathVerts)
|
||||
if _, exists := g.pathCache.get(p.pathKey); !exists {
|
||||
data := buildPath(r.ctx, p.pathVerts)
|
||||
g.pathCache.put(p.pathKey, data)
|
||||
}
|
||||
p.pathVerts = nil
|
||||
|
||||
Reference in New Issue
Block a user