<div dir="ltr"><div>Thanks for fixing this.  It's kind of unbelievable that the test wasn't doing this before.<br></div><div><br></div>Reviewed-by: Laura Ekstrand <<a href="mailto:laura@jlekstrand.net">laura@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 10:12 AM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
 tests/texturing/getteximage-simple.c | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/tests/texturing/getteximage-simple.c b/tests/texturing/getteximage-simple.c<br>
index 7971583..0befc78 100644<br>
--- a/tests/texturing/getteximage-simple.c<br>
+++ b/tests/texturing/getteximage-simple.c<br>
@@ -71,11 +71,14 @@ piglit_display(void)<br>
<br>
 void piglit_init(int argc, char **argv)<br>
 {<br>
+       GLuint tex;<br>
        int i;<br>
<br>
        for(i = 0; i < 4096; ++i)<br>
                data[i] = rand() & 0xff;<br>
<br>
+       glGenTextures(1, &tex);<br>
+       glBindTexture(GL_TEXTURE_2D, tex);<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);<br>
        glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 64, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.3<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>