Hay, well my problem is that I'm trying to compile and use shader.
I found a tutorial LWJGL-shaders but i think its outdated because they are still using 'GL11.glXxxx
' in it.
Anyway I've tried to convert it to newest LWJGL. And it does nothing. (no shader compiled / no glprogramused ).
After looking for the reason I've found that the first command
is always returning '0'
From the tutorial sc:
shader = ARBShaderObjects.glCreateProgramObjectARB();
vertShader = createVertShader("data/screen.vert");
fragShader = createFragShader("data/screen.frag");
else useShader = false;
You can see why i can't continue with the shader.
Does it return always 0 for you too?