Fix warnings
This commit is contained in:
parent
8deb734581
commit
1c3853e51e
3 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ void cube(int etat) {
|
|||
|
||||
// resize
|
||||
GLfloat ratio_inverse;
|
||||
GLuint fenetre_largeur = dimensions[0], fenetre_hauteur = dimensions[1];
|
||||
int fenetre_largeur = dimensions[0], fenetre_hauteur = dimensions[1];
|
||||
glViewport(0, 0, fenetre_largeur, fenetre_hauteur);
|
||||
ratio_inverse = fenetre_hauteur / (GLfloat)fenetre_largeur;
|
||||
gl4duBindMatrix("proj");
|
||||
|
|
|
@ -30,7 +30,7 @@ void cube2(int etat) {
|
|||
|
||||
// resize
|
||||
GLfloat ratio_inverse;
|
||||
GLuint fenetre_largeur = dimensions[0], fenetre_hauteur = dimensions[1];
|
||||
int fenetre_largeur = dimensions[0], fenetre_hauteur = dimensions[1];
|
||||
glViewport(0, 0, fenetre_largeur, fenetre_hauteur);
|
||||
ratio_inverse = fenetre_hauteur / (GLfloat)fenetre_largeur;
|
||||
gl4duBindMatrix("proj");
|
||||
|
|
|
@ -46,7 +46,7 @@ void fondu(void (* ancienne_anim)(int), void (* nouvelle_anim)(int), Uint32 temp
|
|||
}
|
||||
|
||||
// Mix des deux écrans
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex_id, 0);
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, (GLuint)tex_id, 0);
|
||||
glDisable(GL_DEPTH);
|
||||
glUseProgram(proc_id);
|
||||
|
||||
|
|
Reference in a new issue