mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Bugfixes, nw
This commit is contained in:
parent
00f83c15ae
commit
50e3b68924
@ -44,7 +44,11 @@ bgfx_chain* chain_manager::chain(std::string name, running_machine& machine, uin
|
||||
|
||||
bgfx_chain* chain_manager::load_chain(std::string name, running_machine& machine, uint32_t window_index)
|
||||
{
|
||||
std::string path = std::string(m_options.bgfx_path()) + "/chains/" + name + ".json";
|
||||
if (name.length() < 5 || (name.compare(name.length() - 5, 5, ".json")!= 0))
|
||||
{
|
||||
name = name + ".json";
|
||||
}
|
||||
std::string path = std::string(m_options.bgfx_path()) + "/chains/" + name;
|
||||
|
||||
bx::CrtFileReader reader;
|
||||
bx::open(&reader, path.c_str());
|
||||
|
@ -271,13 +271,6 @@ void renderer_bgfx::put_packed_quad(render_primitive *prim, UINT32 hash, ScreenV
|
||||
float u[4] = { u0, u1, u0, u1 };
|
||||
float v[4] = { v0, v0, v1, v1 };
|
||||
|
||||
bgfx::RendererType::Enum renderer_type = bgfx::getRendererType();
|
||||
if (renderer_type == bgfx::RendererType::OpenGL || renderer_type == bgfx::RendererType::OpenGLES)
|
||||
{
|
||||
v[0] = v[1] = v1;
|
||||
v[2] = v[3] = v0;
|
||||
}
|
||||
|
||||
if (PRIMFLAG_GET_TEXORIENT(prim->flags) & ORIENTATION_SWAP_XY)
|
||||
{
|
||||
std::swap(u[1], u[2]);
|
||||
|
Loading…
Reference in New Issue
Block a user