diff options
Diffstat (limited to 'src/ral/backends/opengl/backend_opengl.c')
-rw-r--r-- | src/ral/backends/opengl/backend_opengl.c | 2 |
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; |