<p dir="ltr"><br>
On Oct 5, 2015 10:23 AM, "Brian Paul" <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>> wrote:<br>
><br>
> Check that glCreateTextures rejects target=0, per the spec. Also, Mesa<br>
> internally uses target=0 for a special state (texture gen'd but not bound)<br>
> so it's good to test.<br>
> ---<br>
> tests/spec/arb_direct_state_access/create-textures.c | 4 ++++<br>
> 1 file changed, 4 insertions(+)<br>
><br>
> diff --git a/tests/spec/arb_direct_state_access/create-textures.c b/tests/spec/arb_direct_state_access/create-textures.c<br>
> index ca6d43c..5479844 100644<br>
> --- a/tests/spec/arb_direct_state_access/create-textures.c<br>
> +++ b/tests/spec/arb_direct_state_access/create-textures.c<br>
> @@ -62,6 +62,10 @@ piglit_display(void)<br>
> glCreateTextures(GL_PROXY_TEXTURE_2D, 1, &name);<br>
> pass = piglit_check_gl_error(GL_INVALID_ENUM) && pass;<br>
><br>
> + /* Invalid zero target */<br>
> + glCreateTextures(0, 1, &name);<br>
> + pass = piglit_check_gl_error(GL_INVALID_ENUM) && pass;<br>
> +<br>
> /* n is negative */<br>
> glCreateTextures(GL_TEXTURE_2D, -1, &name);<br>
> pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass;<br>
> --<br>
> 1.9.1<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">http://lists.freedesktop.org/mailman/listinfo/piglit</a></p>
<p dir="ltr">Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>></p>