Skip to content

Commit cb91114

Browse files
committed
Add bool main to TLM
1 parent 9fdd62d commit cb91114

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/engine/renderer-vulkan/RefAPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4040

4141
#include "Thread/TaskList.h"
4242

43+
#include "Thread/ThreadMemory.h"
44+
4345
Cvar::Modified<Cvar::Cvar<bool>> r_fullscreen( "r_fullscreen", "use full-screen window", CVAR_ARCHIVE, true );
4446

4547
cvar_t* r_allowResize;
@@ -61,6 +63,7 @@ namespace TempAPI {
6163
}
6264

6365
bool BeginRegistration( glconfig_t* glconfig, glconfig2_t* ) {
66+
TLM.main = true;
6467
taskList.Init();
6568

6669
glconfig->vidWidth = 1920;

src/engine/renderer-vulkan/Thread/ThreadMemory.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ struct ChunkAllocator {
8181
class ThreadMemory {
8282
public:
8383
static constexpr uint32_t MAIN_ID = UINT32_MAX;
84-
uint32_t id = MAIN_ID;
84+
uint32_t id;
85+
86+
bool main = false;
8587

8688
ChunkAllocator chunkAllocators[MAX_MEMORY_AREAS];
8789

0 commit comments

Comments
 (0)