add allocators into instance

This commit is contained in:
Gregory Wells
2025-08-12 17:54:10 -04:00
parent 3c8205c20f
commit 94fb6fa2dc
2 changed files with 4 additions and 4 deletions

View File

@@ -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) {
}

View File

@@ -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);