diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/daw.c | 3 | ||||
| -rw-r--r-- | src/platform_glfw.c | 2 | ||||
| -rw-r--r-- | src/rendering.c | 4 |
3 files changed, 2 insertions, 7 deletions
@@ -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); } } } |
