use auto cast
This commit is contained in:
parent
e42e0bc31d
commit
c4da7f3905
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ static void init(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);
|
||||
|
||||
static Uint32 t0 = -1;
|
||||
|
@ -76,7 +76,7 @@ static void draw(void) {
|
|||
gl4duTranslatef(0.f, d, -2.f);
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
glBindTexture(GL_TEXTURE_2D, _texId);
|
||||
gl4duScalef(1.f, .3f, 1.f);
|
||||
gl4duScalef(1, 0.3f, 1);
|
||||
|
||||
glUseProgram(_pId);
|
||||
gl4duSendMatrices();
|
||||
|
|
Reference in a new issue