fix multithread render issues and cleanup the code

This commit is contained in:
2018-08-08 15:59:33 +02:00
parent 91add1b0b3
commit d57d4f3490
2 changed files with 95 additions and 104 deletions

View File

@@ -20,7 +20,7 @@ void NodeImageTexture::draw()
{
using namespace ui;
tex.bind();
auto& sampler = tex.has_mips ? NodeImage::m_sampler : NodeImage::m_sampler_mips;
auto& sampler = tex.has_mips ? NodeImage::m_sampler_mips : NodeImage::m_sampler;
sampler.bind(0);
glEnable(GL_BLEND);
ui::ShaderManager::use(kShader::Texture);