mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14005 from wighawag/draw_node_shader_fix
allow to use custom shader uniforms and attributes on drawNode
This commit is contained in:
commit
16c7a594c8
|
@ -326,9 +326,7 @@ void DrawNode::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
|
|||
|
||||
void DrawNode::onDraw(const Mat4 &transform, uint32_t flags)
|
||||
{
|
||||
auto glProgram = getGLProgram();
|
||||
glProgram->use();
|
||||
glProgram->setUniformsForBuiltins(transform);
|
||||
getGLProgramState()->apply(transform);
|
||||
|
||||
GL::blendFunc(_blendFunc.src, _blendFunc.dst);
|
||||
|
||||
|
|
Loading…
Reference in New Issue