mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
gpu: enable VK_EXT_swapchain_colorspace when available;
This commit is contained in:
parent
4675dfb3e9
commit
5bb3f50d77
|
@ -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 }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue