[Piglit] [PATCH 4/5] layered-2d-texture-render: add const qualifiers to silence warnings

Brian Paul brianp at vmware.com
Fri Sep 27 17:13:29 PDT 2013


---
 tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c b/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c
index 88a2bfa..71fc249 100644
--- a/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c
+++ b/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c
@@ -123,7 +123,7 @@ static int get_y(int layer, int lod)
 	return PAD + (((1 << lod) - 1) * 2 * size);
 }
 
-static GLfloat *get_color(int num)
+static const GLfloat *get_color(int num)
 {
 	int color_index;
 
@@ -234,7 +234,7 @@ test_results(int layer, int lod)
 {
 	int x = get_x(layer);
 	int y = get_y(layer, lod);
-	GLfloat *expected_color3f = get_color((lod * LAYERS) + layer);
+	const GLfloat *expected_color3f = get_color((lod * LAYERS) + layer);
 	GLboolean pass;
 	int size = SIZE >> lod;
 
-- 
1.7.10.4



More information about the Piglit mailing list