From 72365ec20a195ef574a0844b44d17c58f44e8e80 Mon Sep 17 00:00:00 2001 From: "therealmogminer@gmail.com" Date: Mon, 22 Feb 2016 22:22:52 +0100 Subject: [PATCH] Fix lack of bgfx output on OS X, nw --- src/osd/modules/render/bgfx/uniform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)