diff options
author | therealmogminer@gmail.com <therealmogminer@gmail.com> | 2016-03-18 17:20:55 +0100 |
---|---|---|
committer | therealmogminer@gmail.com <therealmogminer@gmail.com> | 2016-03-18 17:20:55 +0100 |
commit | f464df3073abe73fef5ac560fab62bebc4ac2df9 (patch) | |
tree | fd696cc655626d182face68a8883f5942cd7a759 /src | |
parent | c383078ba572a56bea6c21e97721fb6c00684232 (diff) |
Setting a sampler counts as setting a uniform in bgfx, nw
Diffstat (limited to 'src')
-rw-r--r-- | src/osd/modules/render/bgfx/uniform.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/uniform.cpp b/src/osd/modules/render/bgfx/uniform.cpp index a3e734f33dc..780705d8371 100644 --- a/src/osd/modules/render/bgfx/uniform.cpp +++ b/src/osd/modules/render/bgfx/uniform.cpp @@ -29,7 +29,10 @@ bgfx_uniform::~bgfx_uniform() void bgfx_uniform::upload() { - bgfx::setUniform(m_handle, m_data); + if (m_type != bgfx::UniformType::Int1) + { + bgfx::setUniform(m_handle, m_data); + } } bgfx_uniform* bgfx_uniform::set(float* value) |