Posted by
Sven Gothel on
Nov 21, 2011; 9:14am
URL: https://forum.jogamp.org/invalid-shader-version-number-tp3519333p3524238.html
On Monday, November 21, 2011 09:54:52 AM gmseed [via jogamp] wrote:
>
> Hi
>
> Thanks for the link.
>
> The previously posted program works fine on my desktop running WinXP-64 with
> an NVIDIA Quadro FX1400, which supports OpenGL2 but accepts the 330 shader
> version.
>
> The program throws shader compile exceptions on my Win7-64 laptop with an
> ATI Mobility Radeon HD 5470 [version 8.672.1.3000], which from the following
> spec website supports OpenGL 3.2:
>
>
http://www.amd.com/uk/products/notebook/graphics/ati-mobility-hd-5400/Pages/hd-5450-specs.aspx>
> On both machines I'm using the same jars/dlls from the most recent JOGL
> download.
JOGL doesn't parse or process the actual GLSL programs,
but passes them directly to the driver.
Indeed, GLSL code may behave differently (compile-time/run-time)
on diff platforms. It may be the supported GLSL version which differs
or other features like variable loops .. etc.
One driver may accept GLSL 330 w/ a GL 2 context, others don't.
Reason why they accept it could be that the underlying context you have
created actually is a GL 3 backward compatible one .. even if created w/
the traditional non ARB context creation code. This is usally true w/ NVidia.
However .. you cannot count on it.
~Sven
>
> Graham
>