mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-23 07:05:07 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@234 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
7214d0be63
commit
c2f1d189a8
@ -89,7 +89,7 @@ $(S.DEST)/glew.c: $(EXT)/.dummy
|
||||
$(BIN)/make_def.pl WGL $(EXT)/WGL_* >> $@
|
||||
echo -e "\n#endif /* _WIN32 && !GLEW_MX */\n" >> $@
|
||||
echo -e "#if !(defined(_WIN32) || (defined(__APPLE__) && !defined(GLEW_APPLE_GLX)))" >> $@
|
||||
$(BIN)/make_def.pl GLX $(EXT)/GLX_* >> $@
|
||||
$(BIN)/make_def.pl GLX $(CORE)/GLX_VERSION* $(EXT)/GLX_* >> $@
|
||||
echo -e "\n#endif /* !_WIN32 */\n" >> $@
|
||||
$(BIN)/make_init.pl GL $(CORE)/GL_VERSION* >> $@
|
||||
$(BIN)/make_init.pl GL $(EXT)/GL_* >> $@
|
||||
|
@ -11,4 +11,7 @@ perl -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& de
|
||||
perl -e 's/(GLEW_EXPORT PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML;)/#ifdef GLX_OML_sync_control\n\1/' -pi $1
|
||||
perl -e 's/(GLEW_EXPORT PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML;)/\1\n#endif/' -pi $1
|
||||
perl -e 's/(GLEW_EXPORT GLboolean __GLXEW_OML_sync_control;)/#ifdef GLX_OML_sync_control\n\1\n#endif/' -pi $1
|
||||
perl -e 's/(PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML = NULL;)/#ifdef GLX_OML_sync_control\n\1/' -pi $1
|
||||
perl -e 's/(PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML = NULL;)/\1\n#endif/' -pi $1
|
||||
perl -e 's/(GLboolean __GLXEW_OML_sync_control = GL_FALSE;)/#ifdef GLX_OML_sync_control\n\1\n#endif/' -pi $1
|
||||
rm -f $1.bak
|
||||
|
@ -28,7 +28,7 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF)
|
||||
{
|
||||
int major, minor;
|
||||
/* initialize core GLX 1.2 */
|
||||
if (_glewInit_GLX_VERSION_1_2(ctx)) return GLEW_ERROR_GLX_VERSION_11_ONLY;
|
||||
if (_glewInit_GLX_VERSION_1_2(GLEW_CONTEXT_ARG_VAR)) return GLEW_ERROR_GLX_VERSION_11_ONLY;
|
||||
/* initialize flags */
|
||||
GLXEW_VERSION_1_0 = GL_FALSE;
|
||||
GLXEW_VERSION_1_1 = GL_FALSE;
|
||||
|
@ -110,4 +110,6 @@ static void *dlGetProcAddress (const GLubyte* name)
|
||||
#if !defined(_WIN32) || !defined(GLEW_MX)
|
||||
|
||||
GLboolean __GLEW_VERSION_1_1 = GL_FALSE;
|
||||
GLboolean __GLXEW_VERSION_1_0 = GL_FALSE;
|
||||
GLboolean __GLXEW_VERSION_1_1 = GL_FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user