mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-06 07:50:00 +01:00
Cleanup update and matrix transformation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user