Commit 059a14d
committed
calling 'reshape(0,0)' when destroying webgl context
This releases the textures attached to context fbo faster, without waiting for GC.
These textures make up for the most of gfx memory used, and when opening different apps
quickly we may run out of gfx memory before GC kicks in.1 parent 7fcd70c commit 059a14d
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
1308 | 1310 | | |
1309 | 1311 | | |
1310 | 1312 | | |
| |||
0 commit comments