What's wrong with my program,please help me to solve it

I made a program by OpenGL. It runs very good on my old graphics card. But now I changed my graphics card,and I discovered some problems in my program, and I don’t know the reason of it.
First, this is the error screen.
Next,I used CPU to draw it, and got the correct screen.
And I tried to use pure color to test my program. And got the same program.RGB=125,125,125
What should I do?

Picture1:www.gtev.tk/uploads/errbycard.png

Picture2:www.gtev.tk/uploads/picbycpu.jpg
Picture3:www.gtev.tk /uploads/purecolor.jpg