why gl20 is null?

Anything libgdx related goes here!

why gl20 is null?

Postby laizhe » Fri Dec 31, 2010 2:49 am

the nullpointer occur when I test the frameBuffer,I find the gl20 is null,i get the opengl version '3.3.10188 Compatibility Profile Context' by glGetString(GL20.GL_VERSION) ,if any premise for use gl20? thakns in advance
laizhe
 
Posts: 15
Joined: Fri Nov 26, 2010 6:54 am

Re: why gl20 is null?

Postby mzechner » Fri Dec 31, 2010 5:11 am

I assume you use a JoglApplication. In this case you have to pass true for the last parameter of the constructor.
mzechner
Site Admin
 
Posts: 4879
Joined: Sat Jul 10, 2010 3:50 pm

Re: why gl20 is null?

Postby laizhe » Fri Dec 31, 2010 5:31 am

mzechner wrote:I assume you use a JoglApplication. In this case you have to pass true for the last parameter of the constructor.



yes,i didn't notice the last parameter,it's run when set the parammeter to true. :D
laizhe
 
Posts: 15
Joined: Fri Nov 26, 2010 6:54 am


Return to Libgdx

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 1 guest