[Piglit] [PATCH 3/5] Make readtex.c include piglit-util.h.
Paul Berry
stereotype441 at gmail.com
Wed Jan 25 17:56:46 PST 2012
This patch causes readtex.c to include piglit-util.h and modifies
makefiles appropriately. This is a prerequisite for moving the CLAMP
macro into piglit-util.h.
---
tests/mesa/util/CMakeLists.gl.txt | 2 ++
tests/mesa/util/readtex.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/mesa/util/CMakeLists.gl.txt b/tests/mesa/util/CMakeLists.gl.txt
index 799608f..4af71ef 100644
--- a/tests/mesa/util/CMakeLists.gl.txt
+++ b/tests/mesa/util/CMakeLists.gl.txt
@@ -4,8 +4,10 @@ include_directories (
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${PNG_INCLUDE_DIR}
+ ${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
+ piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
diff --git a/tests/mesa/util/readtex.c b/tests/mesa/util/readtex.c
index 37d5fcd..00506d6 100644
--- a/tests/mesa/util/readtex.c
+++ b/tests/mesa/util/readtex.c
@@ -7,6 +7,7 @@
+#include "piglit-util.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
--
1.7.7.6
More information about the Piglit
mailing list