[Piglit] [PATCH] arb_sample_shading-builtin-gl-sample-mask: Use const reference.

Vinson Lee vlee at freedesktop.org
Tue Dec 16 22:14:21 PST 2014


Fix Coverity "big parameter passed by value" defect.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_sample_shading/execution/builtin-gl-sample-mask.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_sample_shading/execution/builtin-gl-sample-mask.cpp b/tests/spec/arb_sample_shading/execution/builtin-gl-sample-mask.cpp
index 48a2ed7..6c6cf92 100644
--- a/tests/spec/arb_sample_shading/execution/builtin-gl-sample-mask.cpp
+++ b/tests/spec/arb_sample_shading/execution/builtin-gl-sample-mask.cpp
@@ -169,7 +169,7 @@ piglit_init(int argc, char **argv)
 }
 
 bool
-test_builtin_sample_mask(Fbo ms_fbo)
+test_builtin_sample_mask(const Fbo& ms_fbo)
 {
 	int samples;
 	bool result = true;
-- 
1.9.2



More information about the Piglit mailing list