commit 6adf79a84787a4f5ca15d58cd31b96960125accd
parent fcea24fa12319bb4fc98504935cc910c24a626cd
Author: anon <anon@example.com>
Date: Tue, 20 Oct 2026 00:32:30 +0000
Bind restored textures explicitly in eviction test
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/tests/graphics.c b/src/tests/graphics.c
@@ -751,6 +751,8 @@ static void eviction_releases_gpu_storage_and_restores_pixels(void)
assert(!glIsTexture(name));
gl_target_read(texture, output);
assert(!memcmp(output, input, 16));
+ struct gl_texture_state state = {.image = texture};
+ gl_renderer_set_texture(0, &state);
glGetIntegerv(GL_TEXTURE_BINDING_2D, &name);
assert(glIsTexture(name));
gl_target_evict(texture, input);