A workaround of weird behavior of OpenGL.