mirror of https://github.com/axmolengine/axmol.git
Fix drawLine & drawPoints won't use blendFunc bug
This commit is contained in:
parent
668dc50e07
commit
993e420ce4
|
@ -372,6 +372,8 @@ void DrawNode::onDrawGLLine(const Mat4 &transform, uint32_t flags)
|
|||
glProgram->use();
|
||||
glProgram->setUniformsForBuiltins(transform);
|
||||
|
||||
GL::blendFunc(_blendFunc.src, _blendFunc.dst);
|
||||
|
||||
if (_dirtyGLLine)
|
||||
{
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _vboGLLine);
|
||||
|
@ -413,6 +415,8 @@ void DrawNode::onDrawGLPoint(const Mat4 &transform, uint32_t flags)
|
|||
glProgram->use();
|
||||
glProgram->setUniformsForBuiltins(transform);
|
||||
|
||||
GL::blendFunc(_blendFunc.src, _blendFunc.dst);
|
||||
|
||||
if (_dirtyGLPoint)
|
||||
{
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _vboGLPoint);
|
||||
|
|
Loading…
Reference in New Issue