1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

gpu: enable VK_EXT_swapchain_colorspace when available;

This commit is contained in:
bjorn 2023-01-20 22:02:32 -08:00
parent 4675dfb3e9
commit 5bb3f50d77

View file

@ -173,6 +173,7 @@ typedef struct {
bool portability;
bool validation;
bool debug;
bool colorspace;
} gpu_extensions;
// State
@ -1892,6 +1893,7 @@ bool gpu_init(gpu_config* config) {
struct { const char* name; bool shouldEnable; bool* flag; } extensions[] = {
{ "VK_KHR_portability_enumeration", true, &state.extensions.portability },
{ "VK_EXT_debug_utils", config->debug, &state.extensions.debug },
{ "VK_EXT_swapchain_colorspace", config->vk.surface, &state.extensions.colorspace },
{ 0 }, // extra extensions for GLFW
{ 0 }
};