My Quad doesn't display

Started by Tick, November 17, 2013, 00:24:25

Previous topic - Next topic

Tick

Hi,

I don't understand why my quad does'nt display, I check and recheck and I don't understand why  :'(

http://pastebin.com/dLuVNEzu

Thx for your help :(

quew8

I don't see any problems but I notice that you aren't checking OpenGL for errors. Call glGetError() at the end of each loop and if it isn't GL_NO_ERROR, then work out which function is causing it. Check the docs and see what could be causing the error.

Whiteclaws

You are actually clearing and then updating before every drawing the quad

So ; what you are doing
calling update
- Clearing Screen
- Updating
- Syncing
drawing the quad

what you should do ;
Clear the screen
Draw the quad
Update
Sync

Tell me if that solves the problem