diff options
author | Brian Paul <[email protected]> | 2009-08-12 17:25:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-12 17:28:45 -0600 |
commit | fdfb0d4b0e04bff2f3dbae2d1f8e3765fb4b0dce (patch) | |
tree | 4988e4af1cd8fc6d439ca11fd7eda05bad2feaee /progs/glsl/texdemo1.c | |
parent | af3d7f68894b00a750fa2be72935ab95b5b50d28 (diff) |
progs/glsl: change uniform_info::type field to use GLSL vector types
Diffstat (limited to 'progs/glsl/texdemo1.c')
-rw-r--r-- | progs/glsl/texdemo1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/glsl/texdemo1.c b/progs/glsl/texdemo1.c index f0dce8555e7..5b1913a722b 100644 --- a/progs/glsl/texdemo1.c +++ b/progs/glsl/texdemo1.c @@ -53,14 +53,14 @@ static int win = 0; static struct uniform_info ReflectUniforms[] = { - { "cubeTex", 1, GL_INT, { 0, 0, 0, 0 }, -1 }, - { "lightPos", 3, GL_FLOAT, { 10, 10, 20, 0 }, -1 }, + { "cubeTex", 1, GL_SAMPLER_CUBE, { 0, 0, 0, 0 }, -1 }, + { "lightPos", 1, GL_FLOAT_VEC3, { 10, 10, 20, 0 }, -1 }, END_OF_UNIFORMS }; static struct uniform_info SimpleUniforms[] = { - { "tex2d", 1, GL_INT, { 1, 0, 0, 0 }, -1 }, - { "lightPos", 3, GL_FLOAT, { 10, 10, 20, 0 }, -1 }, + { "tex2d", 1, GL_SAMPLER_2D, { 1, 0, 0, 0 }, -1 }, + { "lightPos", 1, GL_FLOAT_VEC3, { 10, 10, 20, 0 }, -1 }, END_OF_UNIFORMS }; |