Skip to content

Commit

Permalink
Fix showing debug menu bar / Devtools (#2214)
Browse files Browse the repository at this point in the history
* Fix showing debug menu bar / Devtools

* Fix
  • Loading branch information
DanielSvoboda authored Jan 23, 2025
1 parent 81e7e4b commit cc2e138
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/core/debug_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ using namespace DebugStateType;

DebugStateImpl& DebugState = *Common::Singleton<DebugStateImpl>::Instance();

bool DebugStateType::showing_debug_menu_bar = false;

static ThreadID ThisThreadID() {
#ifdef _WIN32
return GetCurrentThreadId();
Expand Down
4 changes: 2 additions & 2 deletions src/core/debug_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class ShaderList;

namespace DebugStateType {

extern bool showing_debug_menu_bar;

enum class QueueType {
dcb = 0,
ccb = 1,
Expand Down Expand Up @@ -131,8 +133,6 @@ class DebugStateImpl {
friend class Core::Devtools::Widget::FrameGraph;
friend class Core::Devtools::Widget::ShaderList;

bool showing_debug_menu_bar = false;

std::queue<std::string> debug_message_popup;

std::mutex guest_threads_mutex{};
Expand Down

0 comments on commit cc2e138

Please sign in to comment.