glClearColor(0,0,0,1);

I think it is glClearColor(0,0,0,1) instead of glClearColor(0,0,0,0) but i may not wrong