diff options
author | Brian Paul <brianp@vmware.com> | 2013-11-20 10:56:49 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-11-21 11:37:52 -0700 |
commit | e333b95381acbf6a69b2c675fef9d779c358849a (patch) | |
tree | 03af1fc1b8e6bbd6464de2dda587412e0da5b0b5 /tests/spec/gl-1.0 | |
parent | 1588585379bb6d77d9d603be5dbc80cf0c02e30d (diff) |
rendermode-feedback: add static, const qualifiers
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'tests/spec/gl-1.0')
-rw-r--r-- | tests/spec/gl-1.0/rendermode-feedback.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/spec/gl-1.0/rendermode-feedback.c b/tests/spec/gl-1.0/rendermode-feedback.c index 8691c965d..eb48bce56 100644 --- a/tests/spec/gl-1.0/rendermode-feedback.c +++ b/tests/spec/gl-1.0/rendermode-feedback.c @@ -54,31 +54,31 @@ static float texcoord_array[] = { 109.0, 110.0, 111.0, 112.0, }; -float gl_2d_values[] = +static const float gl_2d_values[] = {GL_POLYGON_TOKEN, 3, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0}; -float gl_3d_values[] = +static const float gl_3d_values[] = {GL_POLYGON_TOKEN, 3, 1.0, 2.0, 0.3, 3.0, 4.0, 0.2, 5.0, 6.0, 0.1}; -float gl_3d_color_values[] = +static const float gl_3d_color_values[] = {GL_POLYGON_TOKEN, 3, 1.0, 2.0, 0.3, 0.01, 0.02, 0.03, 0.04, 3.0, 4.0, 0.2, 0.05, 0.06, 0.07, 0.08, 5.0, 6.0, 0.1, 0.09, 0.10, 0.11, 0.12}; -float gl_3d_color_texture_values[] = +static const float gl_3d_color_texture_values[] = {GL_POLYGON_TOKEN, 3, 1.0, 2.0, 0.3, 0.01, 0.02, 0.03, 0.04, 101.0, 102.0, 103.0, 104.0, 3.0, 4.0, 0.2, 0.05, 0.06, 0.07, 0.08, 105.0, 106.0, 107.0, 108.0, 5.0, 6.0, 0.1, 0.09, 0.10, 0.11, 0.12, 109.0, 110.0, 111.0, 112.0}; -float gl_4d_color_texture_values[] = +static const float gl_4d_color_texture_values[] = {GL_POLYGON_TOKEN, 3, 1.0, 2.0, 0.3, 1.0, 0.01, 0.02, 0.03, 0.04, 101.0, 102.0, 103.0, 104.0, 3.0, 4.0, 0.2, 1.0, 0.05, 0.06, 0.07, 0.08, 105.0, 106.0, 107.0, 108.0, @@ -87,7 +87,7 @@ float gl_4d_color_texture_values[] = struct type { GLenum type; char *name; - float *values; + const float *values; int count; } types[] = { { GL_2D, "GL_2D", |