LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Tick on November 17, 2013, 00:24:25

Title: My Quad doesn't display
Post by: Tick on November 17, 2013, 00:24:25
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 :(
Title: Re: My Quad doesn't display
Post by: quew8 on November 17, 2013, 12:56:58
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.
Title: Re: My Quad doesn't display
Post by: Whiteclaws on December 02, 2013, 00:20:22
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