|
@@ -61,10 +61,12 @@ bool SDL_SetErrorV(SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (SDL_GetLogPriority(SDL_LOG_CATEGORY_ERROR) <= SDL_LOG_PRIORITY_DEBUG) {
|
|
|
- // If we are in debug mode, print out the error message
|
|
|
- SDL_LogDebug(SDL_LOG_CATEGORY_ERROR, "%s", error->str);
|
|
|
- }
|
|
|
+// Enable this if you want to see all errors printed as they occur.
|
|
|
+// Note that there are many recoverable errors that may happen internally and
|
|
|
+// can be safely ignored if the public API doesn't return an error code.
|
|
|
+#if 0
|
|
|
+ SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", error->str);
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
return false;
|