From 037cb840dfb90264cd1bef36736cefb3cf7f2dd9 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Fri, 7 Jun 2024 12:37:52 +1000 Subject: upload data when available on buffer creation --- src/renderer/backends/opengl/backend_opengl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/renderer/backends/opengl/backend_opengl.h') diff --git a/src/renderer/backends/opengl/backend_opengl.h b/src/renderer/backends/opengl/backend_opengl.h index 14a46f9..876cfe4 100644 --- a/src/renderer/backends/opengl/backend_opengl.h +++ b/src/renderer/backends/opengl/backend_opengl.h @@ -32,7 +32,8 @@ typedef struct gpu_buffer { u32 vbo; u32 ibo; } id; - u32 pad; + u32 vao; // Optional + u64 size; } gpu_buffer; typedef struct gpu_texture { void *pad -- cgit v1.2.3-70-g09d2