mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Silence warnings.
This commit is contained in:
parent
42a30bffe1
commit
ff5170d0e9
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user