mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Pass function objects through const references.
This commit is contained in:
@@ -51,7 +51,7 @@ void* MakeTexture()
|
||||
return (void*)(intptr_t)tex;
|
||||
}
|
||||
|
||||
void FreeTexture( void* _tex, void(*runOnMainThread)(std::function<void()>, bool) )
|
||||
void FreeTexture( void* _tex, void(*runOnMainThread)(const std::function<void()>&, bool) )
|
||||
{
|
||||
auto tex = (GLuint)(intptr_t)_tex;
|
||||
runOnMainThread( [tex] { glDeleteTextures( 1, &tex ); }, false );
|
||||
|
||||
Reference in New Issue
Block a user