-
Member
Regular Contributor
(strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????
What is wrong with this??
if(strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL)
{
do stuff
}
why do i keep getting the error, parameter one cannot be converted from, const usigned char * to const char * ???? any one got a clue?? damn i am really starting to get annoyed with this extensions thing.
[This message has been edited by dabeav (edited 05-23-2002).]
-
Member
Regular Contributor
Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????
Your problem is C++. It is an annoying, officious language. Try:
if(strstr((const char*)glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL)
........
i.e. force the type conversion.
I hate C++, it insults my intelligence.
-
Junior Member
Regular Contributor
Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????
There is no EXT_multitexture extension ( as far as I know). Use ARB_multitexture instead. You need to search for GL_ARB_MULTITEXTURE, not just ARB_MULTITEXTURE.
-
Member
Regular Contributor
Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????
Thank you polygon gods. That worked like a dream. Cant believe i missed that REPEATEDLY. oh im sooooo over worked. Oh, and once again, sorry about the miss type, i knew that it was ARB, instead of EXT, my bad. Thank you once again.
-
Member
Regular Contributor
Re: (strstr(glGetString(GL_EXTENSIONS), "EXT_multitexture") != NULL) ????
Extension = (char *) glGetString(GL_EXTENSIONS);
if (!(strstr(Extension, "GL_ARB_multitexture")) == 1)
{//not supported}
else
{//supported}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules