mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Silence warnings.
This commit is contained in:
parent
42a30bffe1
commit
ff5170d0e9
@ -12,18 +12,18 @@ void* MakeTexture()
|
|||||||
glBindTexture( GL_TEXTURE_2D, tex );
|
glBindTexture( GL_TEXTURE_2D, tex );
|
||||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
|
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
|
||||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_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 )
|
void FreeTexture( void* _tex )
|
||||||
{
|
{
|
||||||
auto tex = (GLuint)_tex;
|
auto tex = (GLuint)(intptr_t)_tex;
|
||||||
glDeleteTextures( 1, &tex );
|
glDeleteTextures( 1, &tex );
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateTexture( void* _tex, const char* data, int w, int h )
|
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 );
|
glBindTexture( GL_TEXTURE_2D, tex );
|
||||||
glCompressedTexImage2D( GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB8_ETC2, w, h, 0, w * h / 2, data );
|
glCompressedTexImage2D( GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB8_ETC2, w, h, 0, w * h / 2, data );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user