Fix some stuff in Cmake

This commit is contained in:
Gregory Wells
2025-06-10 14:59:18 -04:00
parent 292187b494
commit 92ba48005f
7 changed files with 41 additions and 39 deletions

View File

@@ -12,7 +12,7 @@ void gnBufferData(gnBufferHandle buffer, size_t dataSize, void* data) {
buffer->device->deviceFunctions->_gnBufferData(buffer, dataSize, data);
}
void* gnMapBuffer(gnBufferHandle buffer) {
if (buffer->info.type == GN_STATIC_DRAW) {
if (buffer->info.usage == GN_STATIC_DRAW) {
gnDebuggerSetErrorMessage(buffer->device->instance->debugger, (gnMessageData){
.message = gnCreateString("Cannot map static draw buffers")
});

View File

@@ -3,6 +3,7 @@
#include <platform/gryphn_platform_include.h>
#include "gryphn_dynamic_library.h"
// #include <dlfcn.h>
#include "stdbool.h"
#include "stdio.h"
gnBool gnIsAPISupported(gnRenderingAPI api) {

View File

@@ -1,4 +1,5 @@
#pragma once
#include "stdint.h"
#include "utils/gryphn_string.h"
#include "core/gryphn_handles.h"