42
42
if (NULL == glLinkProgram) glLinkProgram = glLinkProgramARB;
43
43
if (NULL == glUseProgram) glUseProgram = glUseProgramObjectARB;
44
44
if (NULL == glGetAttribLocation) glGetAttribLocation = glGetAttribLocationARB;
47
46
// Windows + Octave or any other OS:
48
47
if (NULL == glGetUniformLocation) glGetUniformLocation = (GLint (*)(GLint, const GLchar*)) glGetUniformLocationARB;
54
49
// Windows + Matlab R2007a or later:
55
50
if (NULL == glGetUniformLocation) glGetUniformLocation = glGetUniformLocationARB;