From ff5170d0e9f19c0af6caa1fdef132e30bc5919e1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 7 Jun 2019 01:03:28 +0200 Subject: [PATCH] Silence warnings. --- server/TracyTexture.cpp | 6 +++--- 1 file 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 ); }