pull request: fix a opengl bug.

I have fixed a bug. And add test recipe.
I was successful in operating the glxgears and glmark-es2.