Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
belegdol committed Dec 8, 2024
1 parent 233190b commit d39a510
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
4 changes: 0 additions & 4 deletions scripts/src/3rdparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,6 @@ project "bimg"
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_partition_tables.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_percentile_tables.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_pick_best_endpoint_format.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_platform_isa_detection.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_quantization.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_symbolic_physical.cpp",
MAME_DIR .. "3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_weight_align.cpp",
Expand Down Expand Up @@ -1597,15 +1596,12 @@ end
MAME_DIR .. "3rdparty/bgfx/src/renderer_agc.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d11.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d12.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_d3d9.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_gl.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_gnm.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_noop.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_nvn.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_vk.cpp",
MAME_DIR .. "3rdparty/bgfx/src/renderer_webgpu.cpp",
MAME_DIR .. "3rdparty/bgfx/src/shader.cpp",
MAME_DIR .. "3rdparty/bgfx/src/shader_dx9bc.cpp",
MAME_DIR .. "3rdparty/bgfx/src/shader_dxbc.cpp",
MAME_DIR .. "3rdparty/bgfx/src/shader_spirv.cpp",
MAME_DIR .. "3rdparty/bgfx/src/topology.cpp",
Expand Down
9 changes: 4 additions & 5 deletions src/osd/modules/debugger/debugimgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class debug_imgui : public osd_module, public debug_module
void refresh_filelist();
void refresh_typelist();
void update_cpu_view(device_t* device);
static bool get_view_source(void* data, int idx, const char** out_text);
static const char* get_view_source(void* user_data, int idx);
static int history_set(ImGuiInputTextCallbackData* data);

running_machine* m_machine;
Expand Down Expand Up @@ -268,11 +268,10 @@ static inline void map_attr_to_fg_bg(unsigned char attr, rgb_t *fg, rgb_t *bg)
}
}

bool debug_imgui::get_view_source(void* data, int idx, const char** out_text)
const char* debug_imgui::get_view_source(void* user_data, int idx)
{
auto* vw = static_cast<debug_view*>(data);
*out_text = vw->source(idx)->name();
return true;
auto* vw = static_cast<debug_view*>(user_data);
return vw->source(idx)->name();
}

void debug_imgui::handle_events()
Expand Down
4 changes: 0 additions & 4 deletions src/osd/modules/render/bgfx/shadermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ std::string shader_manager::make_path_string(const osd_options &options, const s
switch (bgfx::getRendererType())
{
case bgfx::RendererType::Noop:
case bgfx::RendererType::Direct3D9:
shader_path += "dx9";
break;

case bgfx::RendererType::Direct3D11:
case bgfx::RendererType::Direct3D12:
shader_path += "dx11";
Expand Down
2 changes: 0 additions & 2 deletions src/osd/modules/render/drawbgfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ bool video_bgfx::init_bgfx_library(osd_window &window)
std::string_view const backend(m_options->bgfx_backend());
if (backend == "auto")
; // do nothing
else if (backend == "dx9" || backend == "d3d9")
init.type = bgfx::RendererType::Direct3D9;
else if (backend == "dx11" || backend == "d3d11")
init.type = bgfx::RendererType::Direct3D11;
else if (backend == "dx12" || backend == "d3d12")
Expand Down

0 comments on commit d39a510

Please sign in to comment.