Runnable GLSL shader examples

Howdy

I’m trying to find out why loading a shader immediately kills my X server. The code I have worked fine with an nVidia card, but fails horribly with an Intel (GL2.1 capable).
So: first step is to see if it’s something that I’m doing wrong. Does anyone have an easily-runnable example of shader usage that I can test with?

JOGL’s HDR demo doesn’t run for me, claiming that it’s unable to initialise the GL_ARB_vertex_program extension (which is actually available according to glxinfo).

Cheers

Well i am assuming you check to make sure you don’t get any errors compiling then linking the shaders… If you are not, do so. Its could find your problem (ie missing uniform or something).

The sad fact is that its probably an intel driver bug. Basically the intel cards+drivers just don’t work without barfing everywhere and at best YMMV. I simply state that i don’t support intel cards. Its just too expensive in time and money to get them working compared to ATi (not great) and nvidia (pretty good).

This is basically true regardless of OS, but even more so on linux.

If the intel isn’t using the latest drivers then it can be quite buggy. The newer drivers are quite fine. I’m playing mass effect 2 on my intel, though this is directX, I haven’t tried any high quality OpenGl games for a while…