PDA

View Full Version : crash using glUniform3fARB



Alessandro_dup1
12-24-2004, 05: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, 01: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.