Jim_Cobb wrote:
> 
> Following up my own message, first let me apologize because I see now
> that the typedef solution was already there...
> 
> But I do have another (perhaps less foolish) question...
> 
> Why do we use a pointer to GLubyte for the procName?  This prevents
> the following from compiling on my machine
> 
>     int
>     test_it()
>     {
>       void (*tst)() = glGetProcAddressEXT("foo");
>     }
> 
> I get the error
> 
>     cc    -c foo.c -o foo.o
>     "foo.c", line 9: warning: argument #1 is incompatible with prototype:
>             prototype: pointer to const uchar : "foo.c", line 4
>             argument : pointer to char
> 
> Shouldn't it take a "GLbyte *" argument, or even perhaps (gasp)
> "char *"?

glGetString() returns a GLubyte *.  I think we're just following
that convention.  And as with glGetString, a cast is often needed.
Perhaps a GLcharEXT type is worth considering.

-Brian

Reply via email to