diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-15 17:29:50 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-15 17:29:50 +0300 |
commit | 416113fdcb0b2441aadeb5d98a810415a18cb89f (patch) | |
tree | 7c33806e390fa5f61217eaf643a74c902819f2bb /server/TracyTexture.cpp | |
parent | 32c7d13159716f6e59cc006cc0e8d6a15fa6946c (diff) |
Drop support for ETC1 frame images.
Diffstat (limited to 'server/TracyTexture.cpp')
-rw-r--r-- | server/TracyTexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/TracyTexture.cpp b/server/TracyTexture.cpp index 1083fd81..99ea2164 100644 --- a/server/TracyTexture.cpp +++ b/server/TracyTexture.cpp @@ -25,11 +25,11 @@ void FreeTexture( void* _tex ) glDeleteTextures( 1, &tex ); } -void UpdateTexture( void* _tex, const char* data, int w, int h, bool etc ) +void UpdateTexture( void* _tex, const char* data, int w, int h ) { auto tex = (GLuint)(intptr_t)_tex; glBindTexture( GL_TEXTURE_2D, tex ); - glCompressedTexImage2D( GL_TEXTURE_2D, 0, etc ? GL_COMPRESSED_RGB8_ETC2 : COMPRESSED_RGB_S3TC_DXT1_EXT, w, h, 0, w * h / 2, data ); + glCompressedTexImage2D( GL_TEXTURE_2D, 0, COMPRESSED_RGB_S3TC_DXT1_EXT, w, h, 0, w * h / 2, data ); } } |