Fixed bug 2210 - Initializing Video produces unnecessary errors
authorSam Lantinga <slouken@libsdl.org>
Thu, 28 May 2015 12:31:25 -0700
changeset 9674b0f63fe6e012
parent 9673 aea5a2032785
child 9675 3c7288eb4ca4
Fixed bug 2210 - Initializing Video produces unnecessary errors

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.
src/SDL_error.c
     1.1 --- a/src/SDL_error.c	Thu May 28 12:18:05 2015 -0700
     1.2 +++ b/src/SDL_error.c	Thu May 28 12:31:25 2015 -0700
     1.3 @@ -111,7 +111,7 @@
     1.4      va_end(ap);
     1.5  
     1.6      /* If we are in debug mode, print out an error message */
     1.7 -    SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", SDL_GetError());
     1.8 +    SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", SDL_GetError());
     1.9  
    1.10      return -1;
    1.11  }