diff options
author | 2019-11-24 15:40:14 +0100 | |
---|---|---|
committer | 2019-11-24 15:40:28 +0100 | |
commit | 4cccc0183cef3dc959500d708256d18a98a62c46 (patch) | |
tree | 0c982d0df6032ded138b018070c52868b2df5e59 /src/osd/modules/render/bgfx/inputpair.cpp | |
parent | 19a09406a63005cc470695684a57a6e4e36196cb (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.cpp | 4 |
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); |