I downloaded the example code that ra4king wrote to accompany McKesson’s “Learning Modern 3D Graphics Programming” (as well as various other tutorials).
I just wanted to try running Example1_1 (have only scanned “Hello Triangle” chapter so far–am finding it a little scary), but found I got the following error:
java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
at org.lwjgl.opengl.GL20.glCreateShader(GL20.java:221)
The problem seems to be that the following line is returning a 0 to function_pointer:
ContextCapabilities caps = GLContext.getCapabilities();
long function_pointer = caps.glCreateShader;
BufferChecks.checkFunctionAddress(function_pointer);
I’m wondering if this is signalling a problem with my hardware. Here’s some more info I dug up:
when directly checking the DirectX diagnostic tool, I get this:
DirectX version is 9.C, which supposedly corresponds to Shader Model 3.0
But when the original graphics card crashed about a year ago, I replaced it with a cheapo to just get by. Stats on the configuration can be seen in the following:
http://hexara.com/Images/graphicsSettings.JPG
This is all new to me. Is the problem simply the graphics card? Or is there something awry with my configuration and code perhaps? I’ve been able to get the “basic” LWJGL tutorial programs running, but this is the first program that attempts to use the shaders.