~ubuntu-branches/ubuntu/trusty/glew/trusty

« back to all changes in this revision

Viewing changes to auto/src/glew_str_head.c

  • Committer: Bazaar Package Importer
  • Author(s): Joost Yervante Damad
  • Date: 2010-04-10 18:16:21 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100410181621-179fn0er7sjbccku
Tags: 1.5.3-1
* New upstream release (Closes: #577183)
* reworked mx build support to reflect new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef GLEW_MX
2
 
GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name)
3
 
#else
4
 
GLboolean glewIsSupported (const char* name)
5
 
#endif
6
 
{
7
 
  GLubyte* pos = (GLubyte*)name;
8
 
  GLuint len = _glewStrLen(pos);
9
 
  GLboolean ret = GL_TRUE;
10
 
  while (ret && len > 0)
11
 
  {
12
 
    if (_glewStrSame1(&pos, &len, (const GLubyte*)"GL_", 3))
13
 
    {
 
1
#ifdef GLEW_MX
 
2
GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name)
 
3
#else
 
4
GLboolean glewIsSupported (const char* name)
 
5
#endif
 
6
{
 
7
  GLubyte* pos = (GLubyte*)name;
 
8
  GLuint len = _glewStrLen(pos);
 
9
  GLboolean ret = GL_TRUE;
 
10
  while (ret && len > 0)
 
11
  {
 
12
    if (_glewStrSame1(&pos, &len, (const GLubyte*)"GL_", 3))
 
13
    {