From eae4554c1319110df28fd4dddfbb5a43ea1b89e0 Mon Sep 17 00:00:00 2001 From: onelin Date: Sun, 15 Mar 2026 21:28:43 +0100 Subject: Check for TextureStorageXD errors --- src/rendering.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/rendering.c b/src/rendering.c index 4a00c92..01d6df1 100644 --- a/src/rendering.c +++ b/src/rendering.c @@ -845,6 +845,7 @@ void r_create_textures(void* restrict ctx, u32* restrict texture_array, ASSERT(!gl->GetError()); for (usize i = 0; i < num_targets; i++) { gl->TextureStorage1D(texture_array[i], 1, gl_texture_format(BUFFERPARAMETER_GET_PARAMETER(texture_parameters[i])), texture_sz[0]); + ASSERT(!gl->GetError()); } break; @@ -853,6 +854,7 @@ void r_create_textures(void* restrict ctx, u32* restrict texture_array, ASSERT(!gl->GetError()); for (usize i = 0; i < num_targets; i++) { gl->TextureStorage2D(texture_array[i], 1, gl_texture_format(BUFFERPARAMETER_GET_PARAMETER(texture_parameters[i])), texture_sz[0], texture_sz[1]); + ASSERT(!gl->GetError()); } break; @@ -861,6 +863,7 @@ void r_create_textures(void* restrict ctx, u32* restrict texture_array, ASSERT(!gl->GetError()); for (usize i = 0; i < num_targets; i++) { gl->TextureStorage3D(texture_array[i], 1, gl_texture_format(BUFFERPARAMETER_GET_PARAMETER(texture_parameters[i])), texture_sz[0], texture_sz[1], texture_sz[2]); + ASSERT(!gl->GetError()); } break; -- cgit v1.3