Fix lack of bgfx output on OS X, nw

This commit is contained in:
therealmogminer@gmail.com 2016-02-22 22:22:52 +01:00
parent 8dff2200d0
commit 72365ec20a

View File

@ -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)