diff options
author | 2016-02-22 22:22:52 +0100 | |
---|---|---|
committer | 2016-02-22 22:23:23 +0100 | |
commit | 72365ec20a195ef574a0844b44d17c58f44e8e80 (patch) | |
tree | 18efe608c5bd5066ed7991dc8155e387779e6778 /src/osd/modules/render/bgfx/uniform.cpp | |
parent | 8dff2200d00448c79f9e54c49b08751f85dae7aa (diff) |
Fix lack of bgfx output on OS X, nw
Diffstat (limited to 'src/osd/modules/render/bgfx/uniform.cpp')
-rw-r--r-- | src/osd/modules/render/bgfx/uniform.cpp | 3 |
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) |