ui: Fix build with --enable-renderdoc and DEBUG_NV2A_GL

This commit is contained in:
Erik Abair 2022-05-10 14:45:54 -07:00 committed by mborgerson
parent 2d50239832
commit 496a7b7099
4 changed files with 9 additions and 5 deletions

View File

@ -33,7 +33,7 @@ Fbo *controller_fbo,
GLuint g_controller_tex,
g_logo_tex;
enum ShaderType {
enum class ShaderType {
Blit,
BlitGamma, // FIMXE: Move to nv2a_get_framebuffer_surface
Mask,

View File

@ -213,9 +213,9 @@ void xemu_hud_render(void)
ProcessKeyboardShortcuts();
#if defined(DEBUG_NV2A_GL) && defined(CONFIG_RENDERDOC)
if (capture_renderdoc_frame) {
if (g_capture_renderdoc_frame) {
nv2a_dbg_renderdoc_capture_frames(1);
capture_renderdoc_frame = false;
g_capture_renderdoc_frame = false;
}
#endif

View File

@ -31,7 +31,7 @@
extern float g_main_menu_height; // FIXME
#ifdef CONFIG_RENDERDOC
static bool capture_renderdoc_frame = false;
bool g_capture_renderdoc_frame = false;
#endif
#if defined(__APPLE__)
@ -167,7 +167,7 @@ void ShowMainMenu()
ImGui::MenuItem("Video", NULL, &video_window.m_is_open);
#if defined(DEBUG_NV2A_GL) && defined(CONFIG_RENDERDOC)
if (nv2a_dbg_renderdoc_available()) {
ImGui::MenuItem("RenderDoc: Capture", NULL, &capture_renderdoc_frame);
ImGui::MenuItem("RenderDoc: Capture", NULL, &g_capture_renderdoc_frame);
}
#endif
ImGui::EndMenu();

View File

@ -20,3 +20,7 @@
void ProcessKeyboardShortcuts(void);
void ShowMainMenu();
#ifdef CONFIG_RENDERDOC
extern bool g_capture_renderdoc_frame;
#endif