mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Clamp frame image textures to edge.
This commit is contained in:
parent
321c079205
commit
16eef3f966
@ -16,6 +16,8 @@ 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 );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
|
||||
return (void*)(intptr_t)tex;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user