From 03f8528315fa46c95991a34f3325d7b33ae5538c Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Sat, 02 May 2020 21:48:36 +0000
Subject: [PATCH] Update source to SDL2 2.0.12
---
source/test/testvulkan.c | 22 +++++-----------------
1 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/source/test/testvulkan.c b/source/test/testvulkan.c
index cd682af..14e2cdf 100644
--- a/source/test/testvulkan.c
+++ b/source/test/testvulkan.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
+ Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -1119,7 +1119,7 @@
int main(int argc, char *argv[])
{
int fsaa, accel;
- int i, done;
+ int done;
SDL_DisplayMode mode;
SDL_Event event;
Uint32 then, now, frames;
@@ -1138,27 +1138,15 @@
{
return 1;
}
- for(i = 1; i < argc;)
- {
- int consumed;
-
- consumed = SDLTest_CommonArg(state, i);
- if(consumed < 0)
- {
- SDL_Log("Usage: %s %s\n", argv[0], SDLTest_CommonUsage(state));
- quit(1);
- }
- i += consumed;
- }
/* Set Vulkan parameters */
state->window_flags |= SDL_WINDOW_VULKAN;
state->num_windows = 1;
state->skip_renderer = 1;
- if(!SDLTest_CommonInit(state))
- {
- quit(2);
+ if (!SDLTest_CommonDefaultArgs(state, argc, argv) || !SDLTest_CommonInit(state)) {
+ SDLTest_CommonQuit(state);
+ return 1;
}
SDL_GetCurrentDisplayMode(0, &mode);
--
Gitblit v1.9.3