summaryrefslogtreecommitdiff
path: root/src/rendering.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering.c')
-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;