I have a class that subclasses Node
.
I override the draw()
method and implement onDraw
and
pass that to the a CustomCommand
to which I pass to the renderer.
I’m using glDrawArrays(GL_POINTS, 0, total_points)
It’s very weird, the moment I setVisible(true)
on my custom Node.
It flashes in the beginning, and then I don’t see any flashes.
It’s like a one time flicker.
I’m drawing into a RenderTexture
but even without it the flicker still occurs.
I’m using cocos2dx v3.17.1 and my test device is a Samsung Tab SM-T230NU.
Does anyone have an insight or a clue to what may be going on?