1
0
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:
Bartosz Taudul
2020-08-15 15:02:36 +02:00
parent a3d8b5d225
commit 28af5230d3
3 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -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 );
}