summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl/backend_opengl.c
diff options
context:
space:
mode:
authorOmni <omniscient.oce@gmail.com>2024-06-22 16:27:42 +1000
committerOmni <omniscient.oce@gmail.com>2024-06-22 16:27:42 +1000
commit434d7387fe0dda917d3a9f1df7f1c5fd113d6188 (patch)
treeb1817f7b7aed3587ca0851960f20e106083fc90d /src/renderer/backends/opengl/backend_opengl.c
parenta40a52ab3c827ff08f502f8163358d0faacf9b13 (diff)
fix compilation. shadows still WIP
Diffstat (limited to 'src/renderer/backends/opengl/backend_opengl.c')
-rw-r--r--src/renderer/backends/opengl/backend_opengl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.c b/src/renderer/backends/opengl/backend_opengl.c
index 7d632c7..8f52674 100644
--- a/src/renderer/backends/opengl/backend_opengl.c
+++ b/src/renderer/backends/opengl/backend_opengl.c
@@ -172,13 +172,13 @@ gpu_cmd_encoder gpu_cmd_encoder_create() {
void gpu_cmd_encoder_destroy(gpu_cmd_encoder* encoder) {}
void gpu_cmd_encoder_begin(gpu_cmd_encoder encoder) {}
void gpu_cmd_encoder_begin_render(gpu_cmd_encoder* encoder, gpu_renderpass* renderpass) {
- glBindFramebuffer(GL_FRAMEBUFFER, renderpass->fbo);
+ // glBindFramebuffer(GL_FRAMEBUFFER, renderpass->fbo);
rgba clear_colour = STONE_800;
glClearColor(clear_colour.r, clear_colour.g, clear_colour.b, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void gpu_cmd_encoder_end_render(gpu_cmd_encoder* encoder) {
- glBindFramebuffer(GL_FRAMEBUFFER, 0);
+ // glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
void gpu_cmd_encoder_begin_compute() {}
gpu_cmd_encoder* gpu_get_default_cmd_encoder() { return &context.command_buffer; }