From: Brian P. <bri...@tu...> - 2008-01-16 01:57:47
|
Utkarsh Ayachit wrote: > > > >Brian Paul wrote: >>>>> > Utkarsh Ayachit wrote: >>>>> >> Mesa 7.0.2 says that is supports OpenGL 2.1 however, >>>>> >> GetAttributeLocation results in the following error message: >>>>> >> >>>>> >> Mesa 7.0.2 implementation error: User called no-op dispatch >>>>> function >>>>> >> (an unsupported extension function?) >>>>> >> >>>>> >> Am I missing something or are vertex attributes not supported >>>>> at all? >>>>> > >>>> [...] >> >> OK, does the problem occur with progs/demos/fslight.c? >> >> It calls glGetAttribLocation via the pointer returned by >> glutGetProcAddress(). You can try calling glGetAttribLocation() >> directly too with this patch to fslight.c: >> Either way, it works OK here. > > fslight.c seems to work fine. However, on closer inspection I noticed > that the glGetAttribLocation part of the code never executes since > "CoordAttrib" is set to 0. > Try setting CoordAttrib = 1 near the top of the file. -Brian |