mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Perform OpenGL texture cleanup only on main thread.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#ifndef __TRACYTEXTURE_HPP__
|
||||
#define __TRACYTEXTURE_HPP__
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
void* MakeTexture();
|
||||
void FreeTexture( void* tex );
|
||||
void FreeTexture( void* tex, void(*runOnMainThread)(std::function<void()>) );
|
||||
void UpdateTexture( void* tex, const char* data, int w, int h );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user