tomster1996's picture

Unable to find an entry point named 'glCreateShader' in DLL 'opengl32.dll'.

When i try to create a shader it seems that a function is missing from the opengl dll file.

When i compile this code:

class Shader
        static string vertexSource = System.IO.File.ReadAllText("Resources/Shader/dirLightAmbDiffSpecPix.vert");
        static string fragSource = System.IO.File.ReadAllText("Resources/Shader/dirLightAmbDiffSpecPix.frag");
        public static void start()
            int vert = GL.CreateShader(ShaderType.VertexShader);
            int frag = GL.CreateShader(ShaderType.FragmentShader);
            int prog = GL.CreateProgram();
            GL.AttachShader(prog, vert);
            GL.AttachShader(prog, frag);

I get this error message:
"Unable to find an entry point named 'glCreateShader' in DLL 'opengl32.dll'."

Whats going on here and how can i fix it?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

I'm pretty sure Spore uses DirectX on Windows. Your card supports OpenGL 2.1, so there's a good chance that you are just missing an OpenGL driver.

What does the following code return?


(If vendor contains "Microsoft Corporation" then you don't have an OpenGL driver. Vista/Win7 emulate OpenGL over DirectX if you don't install a driver - yes, this is bad.)

Try running Intel's driver update utility. Alternatively, you can download the latest driver for your OS manually (Windows Update is not enough!)

Which OS are you using?

tomster1996's picture

I get :
Intel Cantiga
1.5.0 - Build

But I cant find any new drivers anywhere.

Im using Windows Vista 32 bit home premium.
Its manufacturer is Sony VAIO but i cant find anything on their site either.

tomster1996's picture

This is the driver version.

and the date.

I literally cant find anywhere to update the drivers.

Inertia's picture

Latest driver I could find was for windows xp from feb 2009, you should really try the Intel driver update utility linked in the above post.

IIRC even the worst Intel chips support ARB_vertex_program and ARB_fragment_program, Shader Model 1.0. But before you head towards and read the specs, you'll probably want to take a look at Nvidia's Cg first and then Tao's Cg bindings. (It's similar level like GLSL)

tomster1996's picture

I did try the Intel driver update utility i get this:
"A customized computer manufacturer driver is installed on your computer. The Intel Driver Update Utility is not able to update the driver. Installing a generic Intel driver instead of the customized computer manufacturer driver may cause technical issues. Contact your computer manufacturer for the latest driver for your computer. "

When i go to the vaio update website. This is the only graphics related update I get.
Graphics Driver (DisplayLink) 4.5 - 4.5.13507.0

I installed it but still no difference.

If i try installing any driver updates from Intel it tells me that the driver is not validated for my computer.

c2woody's picture

Ask Sony and Intel.

tomster1996's picture

Nevermind, I downloaded the zip form of the drivers and went into control panel to install the drivers.

It works now! :D

Thanks everyone.

Inertia's picture

It would be helpful if you could (at least) clarify what GLSL capabilities the Intel Cantiga really has with those new drivers. If you obtained the drivers from a different source than it would be nice if you post the URL here, so other users (who experience the same problem) can follow the link and we can add that address to the troubleshooting pages. Thanks!

tomster1996's picture

Ok, well i got the new drivers from but the specular shading doesnt appear how it does with MESA 3D but im not sure why.

the Fiddler's picture

Intel's GLSL compiler is somewhat picky. Check its logs for compiler/linker warnings and make sure your uniform values are getting transfered correctly (I've had lots of issues with uniform arrays and structs on Intel).