mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
fix(atlas): give back every GPU object when the globe goes
dispose() freed the world and region layers only; the ocean, arcs, outline, pick texture and framebuffer, status textures, shared buffers and programs stayed on the context, which React keeps alive across a remount, so each visit to the Atlas left them behind.
This commit is contained in:
@@ -154,6 +154,7 @@ export function createFakeGl(opts: FakeGlOptions = {}) {
|
||||
),
|
||||
getShaderInfoLog: vi.fn(() => (opts.shaderLog === undefined ? 'shader log' : opts.shaderLog)),
|
||||
deleteShader: vi.fn((_s: FakeShader) => undefined),
|
||||
deleteProgram: vi.fn((_p: FakeProgram) => undefined),
|
||||
createProgram: vi.fn((): FakeProgram => {
|
||||
const p: FakeProgram = {
|
||||
kind: 'program',
|
||||
|
||||
Reference in New Issue
Block a user