mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-04 21:52:39 +00:00
testprograms: parse arguments using SDLTest_CommonState
This commit is contained in:
committed by
Anonymous Maarten
parent
8bea41f737
commit
4a6528e3f0
@@ -1094,15 +1094,15 @@ int main(int argc, char **argv)
|
||||
Uint32 frames;
|
||||
int dw, dh;
|
||||
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
|
||||
/* Initialize test framework */
|
||||
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
|
||||
if (state == NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
|
||||
/* Set Vulkan parameters */
|
||||
state->window_flags |= SDL_WINDOW_VULKAN;
|
||||
state->skip_renderer = 1;
|
||||
|
||||
Reference in New Issue
Block a user