diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-06-09 11:42:17 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-06-09 11:42:17 +1000 |
commit | 64830ce51a185091f54c2b42b365110d89d44f1b (patch) | |
tree | 644c4a4425c2003a649cf02af33af488cb56a148 /src/renderer/backends/backend_vulkan.c | |
parent | 859ea7e23d2bbbc4b32b43727ae50aebe399e720 (diff) |
triangle on opengl works again. happy days
Diffstat (limited to 'src/renderer/backends/backend_vulkan.c')
-rw-r--r-- | src/renderer/backends/backend_vulkan.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/renderer/backends/backend_vulkan.c b/src/renderer/backends/backend_vulkan.c index 112e38b..8801230 100644 --- a/src/renderer/backends/backend_vulkan.c +++ b/src/renderer/backends/backend_vulkan.c @@ -1,7 +1,10 @@ +#include "defines.h" #if defined(CEL_REND_BACKEND_VULKAN) -#include <assert.h> +#define GLFW_INCLUDE_VULKAN #include <glfw3.h> + +#include <assert.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> @@ -19,7 +22,6 @@ #include "str.h" #include "vulkan_helpers.h" -#include "defines.h" #include "file.h" #include "log.h" #include "ral.h" @@ -1637,7 +1639,7 @@ texture_handle gpu_texture_create(texture_desc desc, bool create_view, const voi &texture->sampler); if (res != VK_SUCCESS) { ERROR("Error creating texture sampler for image %s", texture->debug_label); - return; + exit(1); } return handle; |