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
1
| ARBShaderObjects.glCreateProgramObjectARB(); |
is always returning '0'
From the tutorial sc:
1 2 3 4 5 6 7
| shader = ARBShaderObjects.glCreateProgramObjectARB();
if(shader!=0){ 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?