Cleanup update and matrix transformation

This commit is contained in:
brunoherbelin
2020-04-05 23:11:47 +02:00
parent ea7c4aaa93
commit 4b9ba47038
7 changed files with 50 additions and 52 deletions

View File

@@ -33,9 +33,9 @@ uint Resource::getTextureBlack()
if (tex_index_black == 0) {
glGenTextures(1, &tex_index_black);
glBindTexture( GL_TEXTURE_2D, tex_index_black);
unsigned char clearColor[3] = {0};
unsigned char clearColor[4] = {0};
// texture with one black pixel
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 1, 0, GL_RGB, GL_UNSIGNED_BYTE, clearColor);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, clearColor);
}
return tex_index_black;