mesa/copyimage: fix num samples check to handle renderbuffers.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2016 03:41:28 +0000 (13:41 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Jun 2016 20:08:22 +0000 (06:08 +1000)
commitc0856eacf1f76f294e2b89eb7250580517018567
tree6805234883cd32fc990a7377fce4a0644bfb0cc6
parent80c288603300a06ac1585769cc491711c3d1b4f0
mesa/copyimage: fix num samples check to handle renderbuffers.

This test was only happening for textures, but there is
nothing in the spec to say this, so test it for all cases.

This fixes:
GL45-CTS.copy_image.invalid_target

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/copyimage.c