summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-21 06:33:45 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-21 06:33:45 +0100
commitb224d9a77ad6483daf2b60b75dbdc323a3bcd4b0 (patch)
treebcc0b4accd8947bff9595717ff93a326153afde6
parent825d575195d59f02e9685b33ea3cbbe32e405304 (diff)
Make specifying invalid bgfx backends non-fatal, nw
-rw-r--r--src/osd/modules/render/drawbgfx.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp
index d60bd915d1a..4372eee4f8a 100644
--- a/src/osd/modules/render/drawbgfx.cpp
+++ b/src/osd/modules/render/drawbgfx.cpp
@@ -153,8 +153,8 @@ int renderer_bgfx::create()
}
else
{
- osd_printf_verbose("Unknown backend type '%s'\n", backend.c_str());
- assert(false);
+ printf("Unknown backend type '%s', going with auto-detection\n", backend.c_str());
+ bgfx::init();
}
bgfx::reset(m_width[window().m_index], m_height[window().m_index], video_config.waitvsync ? BGFX_RESET_VSYNC : BGFX_RESET_NONE);
// Enable debug text.
@@ -356,7 +356,7 @@ void renderer_bgfx::process_screen_quad(int view, render_primitive* prim)
}
m_targets->update_guest_targets(tex_width, tex_height);
m_targets->update_window_count(screens);
-
+
m_screen_chain->process(prim, view, view / m_screen_chain->applicable_passes(), *m_textures, window(), get_blend_state(PRIMFLAG_GET_BLENDMODE(prim->flags)));
m_textures->add_provider("screen", nullptr);
@@ -743,7 +743,7 @@ int renderer_bgfx::handle_screen_chains()
// process
render_primitive *prim = window().m_primlist->first();
-
+
int seen = 0;
while (prim != nullptr)
{
@@ -846,7 +846,7 @@ int renderer_bgfx::draw(int update)
allocate_buffer(prim, blend, &buffer);
buffer_status status = buffer_primitives(view_index, atlas_valid, &prim, &buffer, screen);
-
+
if (status == BUFFER_SCREEN)
{
screen++;