Skip to content

Commit

Permalink
Fix undeclared NSView error and add Vulkan check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mathsyouth committed Oct 20, 2024
1 parent be13748 commit 0f3fedd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,18 @@ else ifeq ($(CC),emcc)
LIBS = -s WASM=1 -s ASYNCIFY -s GL_SUPPORT_EXPLICIT_SWAP_CONTROL=1 $(EXPORTED_JS)
EXT = .js
NO_GLES = 0
NO_VULKAN = 1
detected_OS = web
else
LIBS += -std=c99
endif

VULKAN_CHECK := $(shell command -v vulkan)
ifneq ($(VULKAN_CHECK),)
NO_VULKAN = 0
else
NO_VULKAN = 1
endif

EXAMPLE_OUTPUTS = \
examples/basic/basic \
examples/buffer/buffer \
Expand Down
1 change: 1 addition & 0 deletions examples/metal/metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define RGFW_NO_API
#define RGFWDEF
#import "RGFW.h"
#import <Cocoa/Cocoa.h>

#import <Metal/Metal.h>
#import <QuartzCore/QuartzCore.h>
Expand Down

0 comments on commit 0f3fedd

Please sign in to comment.