Login  Register

Re: Issues with JOGL under OS X

Posted by agggile on Oct 28, 2015; 10:07am
URL: https://forum.jogamp.org/Issues-with-JOGL-under-OS-X-tp4035608p4035631.html

elect wrote
agggile wrote
Yeah, running a Quadro FX 880M with the latest drivers!
Then you should know a possibility is that the Windows-Nvidia driver is fixing the code for you while the MacOs counterpart is not doing the same.

Nvidia is very well know to not respect properly the OpenGL specifications and allowing some wrong behaviours. This lead devs experience unknown bugs on other platforms or with other HIV gpu
Ah, now this is insightful. Thank you for pointing out, do you possibly have a link to any sort of resource that'd provide more light on this?

Actually, I went through the TextureRenderer class and I found something commented out:

int[] var0 = new int[2];
mainGlObj.glGetIntegerv(GL_DRAW_BUFFER, var0, 0);
mainGlObj.glGetIntegerv(GL_READ_BUFFER, var0, 1);
//mainGlObj.glDrawBuffer(GL_BACK_LEFT);
//mainGlObj.glReadBuffer(GL_FRONT_LEFT);

So, I enabled this on OS X and the glDrawBuffer is giving me an INVALID OPERATION error. I might be on to something here.