glfw: Update tests in all other files to reflect changes made to glfw.init

This commit is contained in:
InKryption 2021-11-10 11:38:43 +01:00 committed by Stephen Gutekanst
parent e9175fb9f1
commit f00367e696
9 changed files with 111 additions and 111 deletions

View file

@ -209,7 +209,7 @@ pub inline fn createWindowSurface(vk_instance: anytype, window: Window, vk_alloc
test "vulkanSupported" {
const glfw = @import("main.zig");
try glfw.init();
try glfw.init(.{});
defer glfw.terminate();
_ = try glfw.vulkanSupported();
@ -217,7 +217,7 @@ test "vulkanSupported" {
test "getRequiredInstanceExtensions" {
const glfw = @import("main.zig");
try glfw.init();
try glfw.init(.{});
defer glfw.terminate();
_ = glfw.getRequiredInstanceExtensions() catch |err| std.debug.print("failed to get vulkan instance extensions, error={}\n", .{err});
@ -225,7 +225,7 @@ test "getRequiredInstanceExtensions" {
test "getInstanceProcAddress" {
const glfw = @import("main.zig");
try glfw.init();
try glfw.init(.{});
defer glfw.terminate();
// syntax check only, we don't have a real vulkan instance and so this function would panic.