summaryrefslogtreecommitdiff
path: root/tests/glean/ttexture_srgb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glean/ttexture_srgb.cpp')
-rw-r--r--tests/glean/ttexture_srgb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/glean/ttexture_srgb.cpp b/tests/glean/ttexture_srgb.cpp
index 62688cb88..524685f32 100644
--- a/tests/glean/ttexture_srgb.cpp
+++ b/tests/glean/ttexture_srgb.cpp
@@ -35,6 +35,7 @@
#include <cmath>
#include "ttexture_srgb.h"
#include "rand.h"
+#include "piglit-util-gl.h"
namespace GLEAN {
@@ -307,7 +308,7 @@ TextureSRGBTest::logOne(TextureSRGBResult &r)
else {
env->log << name << " FAIL\n";
if (errorCode) {
- env->log << "\tOpenGL Error " << gluErrorString(errorCode)
+ env->log << "\tOpenGL Error " << piglit_get_gl_error_name(errorCode)
<< " at " << errorPos << "\n";
}
else if (errorMsg[0]) {