bug occurs frome returning value GL_TRUE/GL_FALSE