diff options
Diffstat (limited to 'src/renderer/backends')
-rw-r--r-- | src/renderer/backends/opengl/backend_opengl.c | 4 | ||||
-rw-r--r-- | src/renderer/backends/opengl/backend_opengl.h | 7 |
2 files changed, 6 insertions, 5 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; } diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h index f588643..9cfbb06 100644 --- a/src/renderer/backends/opengl/backend_opengl.h +++ b/src/renderer/backends/opengl/backend_opengl.h @@ -4,6 +4,7 @@ #include "defines.h" #include "maths_types.h" +#include "ral.h" #include "ral_types.h" #define MAX_PIPELINE_UNIFORM_BUFFERS 32 @@ -27,13 +28,13 @@ typedef struct gpu_pipeline { typedef struct gpu_renderpass { u32 fbo; gpu_renderpass_desc description; - void *pad + void *pad; } gpu_renderpass; typedef struct gpu_cmd_encoder { gpu_pipeline *pipeline; } gpu_cmd_encoder; // Recording typedef struct gpu_cmd_buffer { - void *pad + void *pad; } gpu_cmd_buffer; // Ready for submission typedef struct gpu_buffer { @@ -50,7 +51,7 @@ typedef struct gpu_buffer { } gpu_buffer; typedef struct gpu_texture { u32 id; - void *pad + void* pad; } gpu_texture; typedef struct opengl_support { |