Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-06-07 01:29:59 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-06-07 01:31:51 +0300
commit42a30bffe1e3934a5440bfa8bdccdbc76e6e6b49 (patch)
tree587b7910b033746c801521186bc2a7b99865f1e0 /server/TracyTexture.cpp
parenta654b642ef772dfcf2343fcc6191e721f74e96e4 (diff)
Frame images are now ETC1 compressed.
Diffstat (limited to 'server/TracyTexture.cpp')
-rw-r--r--server/TracyTexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TracyTexture.cpp b/server/TracyTexture.cpp
index 9743381b..02d58097 100644
--- a/server/TracyTexture.cpp
+++ b/server/TracyTexture.cpp
@@ -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 );
}
}