Improve render states support for OpenGL / OpenGLES