summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-03-15 20:28:43 +0000
committeronelin <oscar@nelin.dk>2026-03-15 21:10:14 +0000
commiteae4554c1319110df28fd4dddfbb5a43ea1b89e0 (patch)
treecf92c07d69bf35324d07b04b18766d6b22aac2bd /src
parent2bacfe74bf35ae725820da7155e8f3e85e92c888 (diff)
Check for TextureStorageXD errors
Diffstat (limited to 'src')
-rw-r--r--src/rendering.c3
1 files changed, 3 insertions, 0 deletions
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;