mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
gpu: release all resources in resourceCache.release
Fixes gio#245 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-1
@@ -73,7 +73,8 @@ func (r *resourceCache) frame() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *resourceCache) release() {
|
func (r *resourceCache) release() {
|
||||||
for _, v := range r.newRes {
|
r.frame()
|
||||||
|
for _, v := range r.res {
|
||||||
v.release()
|
v.release()
|
||||||
}
|
}
|
||||||
r.newRes = nil
|
r.newRes = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user