summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-22 22:22:52 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-22 22:23:23 +0100
commit72365ec20a195ef574a0844b44d17c58f44e8e80 (patch)
tree18efe608c5bd5066ed7991dc8155e387779e6778
parent8dff2200d00448c79f9e54c49b08751f85dae7aa (diff)
Fix lack of bgfx output on OS X, nw
-rw-r--r--src/osd/modules/render/bgfx/uniform.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/uniform.cpp b/src/osd/modules/render/bgfx/uniform.cpp
index bfc00d800e1..632af6bd3b8 100644
--- a/src/osd/modules/render/bgfx/uniform.cpp
+++ b/src/osd/modules/render/bgfx/uniform.cpp
@@ -29,7 +29,8 @@ bgfx_uniform::~bgfx_uniform()
void bgfx_uniform::upload()
{
- bgfx::setUniform(m_handle, m_data);
+ if (m_type != bgfx::UniformType::Int1) // Avoid samplers; set separately!
+ bgfx::setUniform(m_handle, m_data);
}
bgfx_uniform* bgfx_uniform::set(float* value)