mirror of https://github.com/xemu-project/xemu.git
ui: Fix build with --enable-renderdoc and DEBUG_NV2A_GL
This commit is contained in:
parent
2d50239832
commit
496a7b7099
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -20,3 +20,7 @@
|
|||
|
||||
void ProcessKeyboardShortcuts(void);
|
||||
void ShowMainMenu();
|
||||
|
||||
#ifdef CONFIG_RENDERDOC
|
||||
extern bool g_capture_renderdoc_frame;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue