From 94fb6fa2dc3f808be6b4fb2502c811eb47d45ce1 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Tue, 12 Aug 2025 17:54:10 -0400 Subject: [PATCH] add allocators into instance --- projects/apis/opengl/src/instance/opengl_instance.c | 4 ++-- projects/apis/opengl/src/instance/opengl_instance.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/apis/opengl/src/instance/opengl_instance.c b/projects/apis/opengl/src/instance/opengl_instance.c index 3e8b973..53ab1b1 100644 --- a/projects/apis/opengl/src/instance/opengl_instance.c +++ b/projects/apis/opengl/src/instance/opengl_instance.c @@ -1,9 +1,9 @@ #include "opengl_instance.h" -gnReturnCode openglCreateInstance(gnInstanceHandle instance, gnInstanceCreateInfo* instanceInfo, gryphnInstanceFunctionLayers* next) { +gnReturnCode openglCreateInstance(gnInstanceHandle instance, gnInstanceCreateInfo* instanceInfo, gryphnInstanceFunctionLayers* next, gnAllocators* allocators) { if (instanceInfo->coreAPI != GN_RENDERINGAPI_OPENGL) return GN_UNSUPPORTED_API; return GN_SUCCESS; } -void openglDestroyInstance(gnInstanceHandle instance, gryphnInstanceFunctionLayers* next) { +void openglDestroyInstance(gnInstanceHandle instance, gryphnInstanceFunctionLayers* next, gnAllocators* allocators) { } diff --git a/projects/apis/opengl/src/instance/opengl_instance.h b/projects/apis/opengl/src/instance/opengl_instance.h index 0f6a5e1..c59e65b 100644 --- a/projects/apis/opengl/src/instance/opengl_instance.h +++ b/projects/apis/opengl/src/instance/opengl_instance.h @@ -4,5 +4,5 @@ typedef struct gnPlatformInstance_t {} gnPlatformInstance; -gnReturnCode openglCreateInstance(gnInstanceHandle instance, gnInstanceCreateInfo* instanceInfo, gryphnInstanceFunctionLayers* next); -void openglDestroyInstance(gnInstanceHandle instance, gryphnInstanceFunctionLayers* next); +gnReturnCode openglCreateInstance(gnInstanceHandle instance, gnInstanceCreateInfo* instanceInfo, gryphnInstanceFunctionLayers* next, gnAllocators* allocators); +void openglDestroyInstance(gnInstanceHandle instance, gryphnInstanceFunctionLayers* next, gnAllocators* allocators);