Skip to content

Commit

Permalink
vulkan-triangle: Specify the Vulkan platform in the Makefile instead
Browse files Browse the repository at this point in the history
  • Loading branch information
elima committed Nov 10, 2016
1 parent f54e78c commit 2b4ed5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions vulkan-triangle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $(TARGET): main.c vert.spv frag.spv \
`pkg-config --libs --cflags xcb` \
-L $(VULKAN_SO_PATH) \
-l$(VULKAN_SO_NAME) \
-DVK_USE_PLATFORM_XCB_KHR \
-o $(TARGET) \
common/vk-api.c \
main.c
Expand Down
2 changes: 1 addition & 1 deletion vulkan-triangle/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <unistd.h>
#include <xcb/xcb.h>

#define VK_USE_PLATFORM_XCB_KHR
/* 'VK_USE_PLATFORM_X_KHR' currently defined as flag in Makefile */
#include <vulkan/vulkan.h>
#include "common/vk-api.h"

Expand Down

0 comments on commit 2b4ed5d

Please sign in to comment.