Fix some stuff in Cmake
This commit is contained in:
@@ -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")
|
||||
});
|
||||
|
@@ -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) {
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "stdint.h"
|
||||
#include "utils/gryphn_string.h"
|
||||
#include "core/gryphn_handles.h"
|
||||
|
||||
|
Reference in New Issue
Block a user