summaryrefslogtreecommitdiff
path: root/src/renderer/backends/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/backends/opengl')
-rw-r--r--src/renderer/backends/opengl/backend_opengl.c1
-rw-r--r--src/renderer/backends/opengl/backend_opengl.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/renderer/backends/opengl/backend_opengl.c b/src/renderer/backends/opengl/backend_opengl.c
index 00b41b2..7d8aa01 100644
--- a/src/renderer/backends/opengl/backend_opengl.c
+++ b/src/renderer/backends/opengl/backend_opengl.c
@@ -120,6 +120,7 @@ gpu_pipeline* gpu_graphics_pipeline_create(struct graphics_pipeline_desc descrip
}
}
+ pipeline->renderpass = description.renderpass;
pipeline->wireframe = description.wireframe;
return pipeline;
diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h
index 9cfbb06..a5a9140 100644
--- a/src/renderer/backends/opengl/backend_opengl.h
+++ b/src/renderer/backends/opengl/backend_opengl.h
@@ -21,6 +21,7 @@ typedef struct gpu_pipeline_layout {
} gpu_pipeline_layout;
typedef struct gpu_pipeline {
u32 shader_id;
+ gpu_renderpass* renderpass;
vertex_description vertex_desc;
buffer_handle uniform_bindings[MAX_PIPELINE_UNIFORM_BUFFERS];
bool wireframe;