mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-27 00:51:55 +00:00
fixed glxew problems
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@211 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
fbe5069168
commit
04f2f79b2e
@ -1,3 +1,4 @@
|
||||
|
||||
##
|
||||
## Copyright (C) 2004, 2003 Marcelo E. Magallon <mmagallo[at]debian org>
|
||||
## Copyright (C) 2004, 2003 Milan Ikits <milan ikits[at]ieee org>
|
||||
@ -79,6 +80,7 @@ $(I.DEST)/glxew.h: $(EXT)/.dummy
|
||||
$(BIN)/make_header.pl '' GLX $(CORE)/GLX_VERSION* >> $@
|
||||
$(BIN)/make_header.pl '' GLX $(EXT)/GLX_* >> $@
|
||||
$(BIN)/make_struct.pl GLX $(CORE)/GLX_VERSION* $(EXT)/GLX_* >> $@
|
||||
perl -e 's/ GLboolean __GLXEW_VERSION_1_2;/ GLboolean __GLXEW_VERSION_1_0;\n GLboolean __GLXEW_VERSION_1_1;\n GLboolean __GLXEW_VERSION_1_2;/' -pi.bak $@
|
||||
cat $(SRC)/glxew_post.h >> $@
|
||||
$(BIN)/fix_OML_sync_control.sh $@
|
||||
|
||||
|
@ -6,7 +6,9 @@
|
||||
## General Public License Version 2 as published by the Free Software
|
||||
## Foundation or, at your option, any later version.
|
||||
|
||||
perl -e 's/#ifndef GLX_OML_sync_control/#if !defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi.bak $1
|
||||
rm -f $1.bak
|
||||
perl -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi.bak $1
|
||||
perl -e 's/#ifndef GLX_OML_sync_control/#if !defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi $1
|
||||
perl -e 's/#ifdef GLX_OML_sync_control/#if defined(GLX_OML_sync_control) \&\& defined(__STDC_VERSION__) \&\& (__STDC_VERSION__ >= 199901L)\n#include <inttypes.h>/;' -pi $1
|
||||
perl -e 's/( PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML;)/#ifdef GLX_OML_sync_control\n\1/' -pi $1
|
||||
perl -e 's/( PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML;)/\1\n#endif/' -pi $1
|
||||
perl -e 's/( GLboolean __GLXEW_OML_sync_control;)/#ifdef GLX_OML_sync_control\n\1\n#endif/' -pi $1
|
||||
rm -f $1.bak
|
||||
|
@ -12,9 +12,9 @@
|
||||
|
||||
/* API */
|
||||
#ifdef GLEW_MX
|
||||
# define GLEW_GET_CONTEXT(x) glewGetContext()->##x
|
||||
# define GLEW_GET_CONTEXT(x) glewGetContext()->x
|
||||
#else
|
||||
# define GLEW_GET_CONTEXT(x) glewDefaultContext->##x
|
||||
# define GLEW_GET_CONTEXT(x) glewDefaultContext->x
|
||||
#endif /* GLEW_MX */
|
||||
|
||||
typedef struct GLEWContextStruct GLEWContext;
|
||||
|
@ -5,9 +5,9 @@ GLEWAPI GLXEWContext* glxewDefaultContext;
|
||||
|
||||
#ifdef GLEW_MX
|
||||
extern GLXEWContext* glxewGetContext();
|
||||
# define GLXEW_GET_CONTEXT(x) glxewGetContext()->##x
|
||||
# define GLXEW_GET_CONTEXT(x) glxewGetContext()->x
|
||||
#else
|
||||
# define GLXEW_GET_CONTEXT(x) glxewDefaultContext->##x
|
||||
# define GLXEW_GET_CONTEXT(x) glxewDefaultContext->x
|
||||
#endif /* GLEW_MX */
|
||||
|
||||
extern GLenum glxewContextInit (GLXEWContext* ctx);
|
||||
|
@ -5,9 +5,9 @@ GLEWAPI WGLEWContext* wglewDefaultContext;
|
||||
|
||||
#ifdef GLEW_MX
|
||||
extern WGLEWContext* wglewGetContext();
|
||||
# define WGLEW_GET_CONTEXT(x) wglewGetContext()->##x
|
||||
# define WGLEW_GET_CONTEXT(x) wglewGetContext()->x
|
||||
#else
|
||||
# define WGLEW_GET_CONTEXT(x) wglewDefaultContext->##x
|
||||
# define WGLEW_GET_CONTEXT(x) wglewDefaultContext->x
|
||||
#endif /* GLEW_MX */
|
||||
|
||||
GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user