Hi Chad,
I saw Matt's email and went ahead and just did this before seeing your
email. Sorry about that!
Nicolai
On 25.04.2016 16:49, Chad Versace wrote:
The function always returned texture name 0. Fix to to return the
actual texture name.
Found by GCC warning:
tests/util/piglit-util-gl.c:2623:1: warning: control reaches end of
non-void function [-Wreturn-type]
---
tests/util/piglit-util-gl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 09eb99d..b288a67 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -2620,6 +2620,8 @@ GLuint piglit_integer_texture(GLenum internalFormat, int
w, int h, int b, int a)
GL_RGBA_INTEGER, GL_INT, img);
free(img);
+
+ return tex;
}
/**
_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit