summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/inputpair.cpp
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2019-11-24 15:40:14 +0100
committer MooglyGuy <therealmogminer@gmail.com>2019-11-24 15:40:28 +0100
commit4cccc0183cef3dc959500d708256d18a98a62c46 (patch)
tree0c982d0df6032ded138b018070c52868b2df5e59 /src/osd/modules/render/bgfx/inputpair.cpp
parent19a09406a63005cc470695684a57a6e4e36196cb (diff)
-bgfx: Fixed Github issues #5830 and #5956. [Ryan Holtz]
Diffstat (limited to 'src/osd/modules/render/bgfx/inputpair.cpp')
-rw-r--r--src/osd/modules/render/bgfx/inputpair.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/inputpair.cpp b/src/osd/modules/render/bgfx/inputpair.cpp
index f6e695a9992..9fd2b0e6855 100644
--- a/src/osd/modules/render/bgfx/inputpair.cpp
+++ b/src/osd/modules/render/bgfx/inputpair.cpp
@@ -46,7 +46,9 @@ bgfx_input_pair::~bgfx_input_pair()
void bgfx_input_pair::bind(bgfx_effect *effect, const int32_t screen) const
{
- assert(effect->uniform(m_sampler) != nullptr);
+ if (effect->uniform(m_sampler) == nullptr)
+ return;
+
std::string name = m_texture + std::to_string(screen);
bgfx_texture_handle_provider* provider = chains().textures().provider(name);