Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
18ef5d02
Commit
18ef5d02
authored
Jan 07, 2016
by
Nigel Stewart
Browse files
Disable _glewSearchExtension for GLEW_OSMESA mode, it's not needed
parent
b5e16ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
auto/src/glew_head.c
View file @
18ef5d02
...
...
@@ -178,6 +178,7 @@ static GLuint _glewStrCopy(char *d, const char *s, char c)
return
i
;
}
#if !defined(GLEW_OSMESA)
#if !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
static
GLboolean
_glewStrSame
(
const
GLubyte
*
a
,
const
GLubyte
*
b
,
GLuint
n
)
{
...
...
@@ -188,6 +189,7 @@ static GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n)
return
i
==
n
?
GL_TRUE
:
GL_FALSE
;
}
#endif
#endif
static
GLboolean
_glewStrSame1
(
const
GLubyte
**
a
,
GLuint
*
na
,
const
GLubyte
*
b
,
GLuint
nb
)
{
...
...
@@ -248,6 +250,7 @@ static GLboolean _glewStrSame3 (const GLubyte** a, GLuint* na, const GLubyte* b,
* other extension names. Could use strtok() but the constant
* string returned by glGetString might be in read-only memory.
*/
#if !defined(GLEW_OSMESA)
#if !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
static
GLboolean
_glewSearchExtension
(
const
char
*
name
,
const
GLubyte
*
start
,
const
GLubyte
*
end
)
{
...
...
@@ -263,3 +266,4 @@ static GLboolean _glewSearchExtension (const char* name, const GLubyte *start, c
return
GL_FALSE
;
}
#endif
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment