Skip to content

Commit

Permalink
Fixed bug 2210 - Initializing Video produces unnecessary errors
Browse files Browse the repository at this point in the history
hiduei

Overview:
Initializing the Video Subsystem causes many errors though everything works as it should.

Steps to Reproduce:
1) Set Loglevel to SDL_LOG_PRIORITY_ERROR

2) Initialize the Video Subsystem (SDL_Init(SDL_INIT_VIDEO))

Actual Results:
Many errors (see attachment) are printed on stderr, then the application continues as expected.

Expected Results:
The errors should have been warnings at most.
  • Loading branch information
slouken committed May 28, 2015
1 parent 6a3ad8a commit f9abea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_error.c
Expand Up @@ -111,7 +111,7 @@ SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
va_end(ap);

/* If we are in debug mode, print out an error message */
SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", SDL_GetError());
SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", SDL_GetError());

return -1;
}
Expand Down

0 comments on commit f9abea2

Please sign in to comment.