summaryrefslogtreecommitdiff
path: root/src/ral/backends
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 17:48:00 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 17:48:00 +1000
commit66b1e02847e08b8e66e9969f0a3d138c15cc70f4 (patch)
treea598a4a1716fa985ab4359a60f6a2c93d2ee390b /src/ral/backends
parent9f1bfa75490bbdf22dd57ff17352d2736a0891fa (diff)
terrain/hmap skeleton
Diffstat (limited to 'src/ral/backends')
-rw-r--r--src/ral/backends/opengl/backend_opengl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c
index ec01214..7929a16 100644
--- a/src/ral/backends/opengl/backend_opengl.c
+++ b/src/ral/backends/opengl/backend_opengl.c
@@ -246,6 +246,8 @@ BufferHandle GPU_BufferCreate(u64 size, GPU_BufferType buf_type, GPU_BufferFlags
return handle;
}
+void GPU_BufferDestroy(BufferHandle handle) { glDeleteBuffers(1, &handle.raw); }
+
TextureHandle GPU_TextureCreate(TextureDesc desc, bool create_view, const void* data) {
// "allocating" the cpu-side struct
TextureHandle handle;