diff --git a/shaders/cube.vs b/shaders/cube.vs index 8355370..975a64a 100644 --- a/shaders/cube.vs +++ b/shaders/cube.vs @@ -14,8 +14,8 @@ const vec3 Ld = vec3(0., -.707, -.707); void main() { - vec3 n = (transpose(inverse(modview)) * vec4(normal, 0.0)).xyz; - il = clamp(dot(n, -Ld), 0.0, 1.0); + vec3 n = (transpose(inverse(modview)) * vec4(normal, 0.)).xyz; + il = clamp(dot(n, -Ld), 0., 1.); gl_Position = proj * view * modview * vec4(position, 1.); diff --git a/shaders/fondu.vs b/shaders/fondu.vs index f9b9ee3..5f6fa05 100644 --- a/shaders/fondu.vs +++ b/shaders/fondu.vs @@ -9,6 +9,6 @@ layout (location = 2) in vec2 vsiTexCoord; out vec2 vsoTexCoord; void main(void) { - gl_Position = vec4(vsiPosition, 1.0); + gl_Position = vec4(vsiPosition, 1.); vsoTexCoord = vec2(vsiTexCoord.s, vsiTexCoord.t); } diff --git a/src/cube.c b/src/cube.c index 8fbffb0..4a17519 100644 --- a/src/cube.c +++ b/src/cube.c @@ -4,7 +4,6 @@ void cube(int etat) { static GLuint cube = 0, proc_id = 0; - static GLclampf rgb[3] = { 0 }; switch(etat) { diff --git a/src/cube2.c b/src/cube2.c index 4e68de1..8899828 100644 --- a/src/cube2.c +++ b/src/cube2.c @@ -4,7 +4,6 @@ void cube2(int etat) { static GLuint cube = 0, proc_id = 0; - static GLclampf rgb[3] = { 0 }; switch(etat) { diff --git a/src/fondu.c b/src/fondu.c index 03152a5..7d9ac3a 100644 --- a/src/fondu.c +++ b/src/fondu.c @@ -12,7 +12,6 @@ void fondu(void (*ancienne_anim)(int), void (*nouvelle_anim)(int), Uint32 temps_ quad = gl4dgGenQuadf(); glGetIntegerv(GL_VIEWPORT, viewport); - glGenTextures(2, ecran); for(int i = 0; i < 2; ++i) { glBindTexture(GL_TEXTURE_2D, ecran[i]);