Re: JOGL Printing Error on Boor
Posted by
Sven Gothel on
URL: https://forum.jogamp.org/JOGL-Printing-Error-on-Boot-tp4031154p4031157.html
On 01/11/2014 03:49 AM, bgroenks96 [via jogamp] wrote:
> Ok! I tracked down the problem to being a call to glOrtho before the view
> dimensions had been initialized, thus resulting in 0 width/height.
Great.
>
> Quick question, GLAutoDrawable.resize will always be called once before
> display() right? This matters for my initialization process.
Sure, this is well documented in the API of GLAutoDrawable
>
> I'm also still getting this output from debug:
> msg Program/shader state performance warning: Fragment Shader is going to be
> recompiled because the shader key based on GL state mismatches.
> when 1389408264627
>
> How do I address that?
Well, that is 'fine' .. i.e. merely a performance notice of the
native debug context from the driver itself. (Enabled via the DebugGL prop).
The shader may need to be recompiled when certain states changes
and this may hint you in reducing state changes etc ..
~Sven