mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 04:53:50 +00:00
Fix warnings in Vulkan test
This commit is contained in:
parent
2d8d8f5917
commit
c0bc10427c
@ -1721,7 +1721,7 @@ static void demo_init_vk(struct demo *demo) {
|
|||||||
err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
|
err = vkEnumerateInstanceLayerProperties(&instance_layer_count, NULL);
|
||||||
assert(!err);
|
assert(!err);
|
||||||
|
|
||||||
instance_validation_layers = instance_validation_layers_alt1;
|
instance_validation_layers = (const char**) instance_validation_layers_alt1;
|
||||||
if (instance_layer_count > 0) {
|
if (instance_layer_count > 0) {
|
||||||
VkLayerProperties *instance_layers =
|
VkLayerProperties *instance_layers =
|
||||||
malloc(sizeof (VkLayerProperties) * instance_layer_count);
|
malloc(sizeof (VkLayerProperties) * instance_layer_count);
|
||||||
@ -1740,7 +1740,8 @@ static void demo_init_vk(struct demo *demo) {
|
|||||||
validation_layer_count = 1;
|
validation_layer_count = 1;
|
||||||
} else {
|
} else {
|
||||||
// use alternative set of validation layers
|
// use alternative set of validation layers
|
||||||
instance_validation_layers = instance_validation_layers_alt2;
|
instance_validation_layers =
|
||||||
|
(const char**) instance_validation_layers_alt2;
|
||||||
demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2);
|
demo->enabled_layer_count = ARRAY_SIZE(instance_validation_layers_alt2);
|
||||||
validation_found = demo_check_layers(
|
validation_found = demo_check_layers(
|
||||||
ARRAY_SIZE(instance_validation_layers_alt2),
|
ARRAY_SIZE(instance_validation_layers_alt2),
|
||||||
|
Loading…
Reference in New Issue
Block a user