Sprite switches direction, update vbo on render

This commit is contained in:
2016-06-19 00:34:20 +10:00
parent bb57f080c9
commit d44ddf9371
6 changed files with 81 additions and 40 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ Texture genTexture(const GLuint width, const GLuint height,
glTexImage2D(GL_TEXTURE_2D, 0, tex.internalFormat, tex.width, tex.height, 0,
tex.imageFormat, GL_UNSIGNED_BYTE, image);
glCheckError();
glGenerateMipmap(GL_TEXTURE_2D);
// TODO(doyle): Not needed for sprites? glGenerateMipmap(GL_TEXTURE_2D);
/* Set parameter of currently bound texture */
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, tex.wrapS);