summaryrefslogtreecommitdiff
path: root/src/SFML/Window/EGLCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/EGLCheck.cpp')
-rw-r--r--src/SFML/Window/EGLCheck.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SFML/Window/EGLCheck.cpp b/src/SFML/Window/EGLCheck.cpp
index dabf54e..a5a4735 100644
--- a/src/SFML/Window/EGLCheck.cpp
+++ b/src/SFML/Window/EGLCheck.cpp
@@ -28,6 +28,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/EGLCheck.hpp>
#include <SFML/System/Err.hpp>
+#include <glad/egl.h>
namespace sf
@@ -35,7 +36,7 @@ namespace sf
namespace priv
{
////////////////////////////////////////////////////////////
-void eglCheckError(const char* file, unsigned int line)
+void eglCheckError(const char* file, unsigned int line, const char* expression)
{
// Obtain information about the success or failure of the most recent EGL
// function called in the current thread
@@ -152,7 +153,8 @@ void eglCheckError(const char* file, unsigned int line)
// Log the error
err() << "An internal EGL call failed in "
<< fileString.substr(fileString.find_last_of("\\/") + 1) << " (" << line << ") : "
- << error << ", " << description
+ << "\nExpression:\n " << expression
+ << "\nError description:\n " << error << "\n " << description << "\n"
<< std::endl;
}
}