[Piglit] [PATCH] fbo-blit-scaled-linear: Use const reference.

Jose Fonseca jfonseca at vmware.com
Mon Dec 15 23:51:28 PST 2014


Looks good.
________________________________________
From: Piglit <piglit-bounces at lists.freedesktop.org> on behalf of Vinson Lee <vlee at freedesktop.org>
Sent: 16 December 2014 01:17
To: piglit at lists.freedesktop.org
Subject: [Piglit] [PATCH] fbo-blit-scaled-linear: Use const reference.

Fix Coverity "big parameter passed by value" defect.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp b/tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp
index c972586..336a962 100644
--- a/tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp
+++ b/tests/spec/arb_framebuffer_object/blit-scaled-linear.cpp
@@ -203,7 +203,7 @@ piglit_init(int argc, char **argv)
        }
 }

-bool test_blit_scaled_linear(Fbo fbo_test)
+bool test_blit_scaled_linear(const Fbo& fbo_test)
 {
        GLfloat scale;
        GLint samples;
--
1.9.1

_______________________________________________
Piglit mailing list
Piglit at lists.freedesktop.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.org_mailman_listinfo_piglit&d=AAIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZCM2zzE&m=0Nnh8fdvZl_xZv4bQo4IoppmgSilhU_TATCX3NtkbW8&s=UCHGVbwXhB0-mviJrCrX4Hfa4KlFWJ3TgiHiVOy3dZw&e=


More information about the Piglit mailing list