1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Frame images are now ETC1 compressed.

This commit is contained in:
Bartosz Taudul
2019-06-07 00:29:59 +02:00
parent a654b642ef
commit 42a30bffe1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ void UpdateTexture( void* _tex, const char* data, int w, int h )
{
auto tex = (GLuint)_tex;
glBindTexture( GL_TEXTURE_2D, tex );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, data );
glCompressedTexImage2D( GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB8_ETC2, w, h, 0, w * h / 2, data );
}
}