summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-12-18 21:29:42 +0000
committeronelin <oscar@nelin.dk>2025-12-18 21:29:42 +0000
commit49fbbcc95e1234e0eb1464fc877b0264c5fcb9d1 (patch)
treea100a111367c72bdb26f97a939a705fee7c77d1f
parente16066c07a9e0f09ffc5360b56bf5c0a1faf6c3d (diff)
Cleanup DEBUG prints
-rw-r--r--src/daw.c3
-rw-r--r--src/platform_glfw.c2
-rw-r--r--src/rendering.c4
3 files changed, 2 insertions, 7 deletions
diff --git a/src/daw.c b/src/daw.c
index 87ae05b..f49e508 100644
--- a/src/daw.c
+++ b/src/daw.c
@@ -210,12 +210,11 @@ static const char* default_quad_shader_fragment_src =
void framebuffer_size_callback_default(ivec3* dst,ivec2 src) {
- DEBUG("RESIZING FRAMEBUFFER TO %d x %d :))", src[0], src[1]);
glm_ivec2_copy(src, *dst);
}
void camera_reset_callback_default(Camera* dst, void* state, ivec2 src) {
- r_perspective_ortho(dst, 45.f, src);
+ r_reset_camera(dst, src);
}
diff --git a/src/platform_glfw.c b/src/platform_glfw.c
index ea743b5..c964415 100644
--- a/src/platform_glfw.c
+++ b/src/platform_glfw.c
@@ -155,7 +155,6 @@ static void window_resize_callback(GLFWwindow* window, int width, int height) {
const GladGLContext* gl = w->context;
gl->Finish();
}
- DEBUG("WINDOW RESIZE <%d,%d>\n", width, height);
}
static void framebuffer_resize_callback(GLFWwindow* window, int width, int height) {
@@ -172,7 +171,6 @@ static void framebuffer_resize_callback(GLFWwindow* window, int width, int heigh
window_reset_cameras(w, i->mem->data, w->render_targets);
//r_reset_camera(c);
}
- DEBUG("FRAMEBUFFER RESIZE <%d,%d>\n", width, height);
}
static void glfw_err_callback(int code, const char* description) {
diff --git a/src/rendering.c b/src/rendering.c
index 8c3846d..296c2ed 100644
--- a/src/rendering.c
+++ b/src/rendering.c
@@ -888,8 +888,6 @@ static u32 gl_format_attachment(u32 format) {
void r_attach_buffers(void *restrict ctx, u32 fbo, u32* buffers, u32* buffer_parameters, i32 num_buffers) {
const GladGLContext *restrict gl = (GladGLContext*)ctx;
- DEBUG("Attaching to FBO %d\n", fbo);
-
u32 err;
u32 color_ofst = 0;
@@ -920,7 +918,7 @@ void r_attach_buffers(void *restrict ctx, u32 fbo, u32* buffers, u32* buffer_par
err = gl->GetError();
if (err) {
- ERROR("Failed to attach buffer!");
+ ERROR("Failed to attach buffer! glError: %u", err);
}
}
}