[SOLVED] Extension woes (weird GLSL behaviour)

Hi, I hope this board is somewhat appropriate as I’m pretty much a beginner. I’m using SDL with Windows XP. Also I’m getting the same results with and without including glext.h.

I’m trying to use GLSL for my project and it does somewhat work. However when my shaders become more complicated it does not work anymore (I’m getting a GL_INVALID_OPERATION error).

Here is the specific code: http://pastebin.ca/1169348 (I hope it’s clear that the function pointers are static class members).

So, as you can see, when I add a few variables it doesn’t work. Has someone experienced something similar or know how to fix this? Thanks in advance!

Regards,
aevirex

EDIT: Sorry for being so hastily. I asked this question in the Quakenet #opengl channel. The result I was told was to include the varying variable in the vertex shader as well. Again sorry, I should have spent more time with the GLSL specification before jumping to conclusions.