@@ -41,7 +41,8 @@ class egl_tls_t {
4141
4242 egl_tls_t ();
4343 static void validateTLSKey ();
44- static void setErrorEtcImpl (const char * caller, int line, EGLint error);
44+ static void setErrorEtcImpl (
45+ const char * caller, int line, EGLint error, bool quiet);
4546
4647public:
4748 static egl_tls_t * getTLS ();
@@ -55,13 +56,17 @@ class egl_tls_t {
5556
5657 template <typename T>
5758 static T setErrorEtc (const char * caller,
58- int line, EGLint error, T returnValue) {
59- setErrorEtcImpl (caller, line, error);
59+ int line, EGLint error, T returnValue, bool quiet = false ) {
60+ setErrorEtcImpl (caller, line, error, quiet );
6061 return returnValue;
6162 }
6263};
6364
64- #define setError (_e, _r ) egl_tls_t ::setErrorEtc(__FUNCTION__, __LINE__, _e, _r)
65+ #define setError (_e, _r ) \
66+ egl_tls_t::setErrorEtc (__FUNCTION__, __LINE__, _e, _r)
67+
68+ #define setErrorQuiet (_e, _r ) \
69+ egl_tls_t::setErrorEtc (__FUNCTION__, __LINE__, _e, _r, true )
6570
6671// ----------------------------------------------------------------------------
6772
0 commit comments