diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-06-07 02:03:28 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-06-07 02:03:28 +0300 |
commit | ff5170d0e9f19c0af6caa1fdef132e30bc5919e1 (patch) | |
tree | 62a20b75c73a394a2506c4243367f4804606fa92 /server/TracyTexture.cpp | |
parent | 42a30bffe1e3934a5440bfa8bdccdbc76e6e6b49 (diff) |
Silence warnings.
Diffstat (limited to 'server/TracyTexture.cpp')
-rw-r--r-- | server/TracyTexture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TracyTexture.cpp b/server/TracyTexture.cpp index 02d58097..ff69f5eb 100644 --- a/server/TracyTexture.cpp +++ b/server/TracyTexture.cpp @@ -12,18 +12,18 @@ void* MakeTexture() glBindTexture( GL_TEXTURE_2D, tex ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); - return (void*)tex; + return (void*)(intptr_t)tex; } void FreeTexture( void* _tex ) { - auto tex = (GLuint)_tex; + auto tex = (GLuint)(intptr_t)_tex; glDeleteTextures( 1, &tex ); } void UpdateTexture( void* _tex, const char* data, int w, int h ) { - auto tex = (GLuint)_tex; + auto tex = (GLuint)(intptr_t)_tex; glBindTexture( GL_TEXTURE_2D, tex ); glCompressedTexImage2D( GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB8_ETC2, w, h, 0, w * h / 2, data ); } |