use auto cast

This commit is contained in:
Mylloon 2023-05-08 09:53:42 +02:00
parent e42e0bc31d
commit c4da7f3905
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -54,7 +54,7 @@ static void init(void) {
} }
static void draw(void) { static void draw(void) {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
static Uint32 t0 = -1; static Uint32 t0 = -1;
@ -76,7 +76,7 @@ static void draw(void) {
gl4duTranslatef(0.f, d, -2.f); gl4duTranslatef(0.f, d, -2.f);
glActiveTexture(GL_TEXTURE0); glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, _texId); glBindTexture(GL_TEXTURE_2D, _texId);
gl4duScalef(1.f, .3f, 1.f); gl4duScalef(1, 0.3f, 1);
glUseProgram(_pId); glUseProgram(_pId);
gl4duSendMatrices(); gl4duSendMatrices();