View Full Version : crash using glUniform3fARB

12-24-2004, 04:05 PM
I have a simple GLSL program: whenever i try to pass some parameters using:

glUniform3fARB(glGetUniformLocationARB(g_programOb j, "LightPosition"), 0.0, 0.0, 4.0); the program crash. Did anyone have the same problem ?

Matt Zamborsky
12-25-2004, 12:28 AM
What hardwere do you have ? And which version of drivers do you have? It can be very important.

glUniform3fARB is a entry point, which is obtained via wglGetProcAddress(in Windows of course).And glGetUniformLocationARB too.

You probably forgot to obtain the address of this function.