mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
test: Use VK_NULL_HANDLE to enable 32 bit builds
This commit is contained in:
parent
0c29d98362
commit
07ae8845a7
@ -3,6 +3,7 @@
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
#include "../tests/common.h"
|
||||
|
||||
|
@ -32,7 +32,7 @@ void destroy_window_glfw(GLFWwindow* window) {
|
||||
glfwTerminate();
|
||||
}
|
||||
VkSurfaceKHR create_surface_glfw(VkInstance instance, GLFWwindow* window) {
|
||||
VkSurfaceKHR surface = nullptr;
|
||||
VkSurfaceKHR surface = VK_NULL_HANDLE;
|
||||
VkResult err = glfwCreateWindowSurface(instance, window, NULL, &surface);
|
||||
if (err) {
|
||||
const char* error_msg;
|
||||
@ -42,7 +42,7 @@ VkSurfaceKHR create_surface_glfw(VkInstance instance, GLFWwindow* window) {
|
||||
if (error_msg != nullptr) std::cout << error_msg;
|
||||
std::cout << "\n";
|
||||
}
|
||||
surface = nullptr;
|
||||
surface = VK_NULL_HANDLE;
|
||||
}
|
||||
return surface;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user