mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-11-03 22:04:16 +00:00 
			
		
		
		
	Refactoring glxewIsSupported and wglewIsSupported for backwards compatibility.
This commit is contained in:
		
							parent
							
								
									08806061a4
								
							
						
					
					
						commit
						d4a0a8401c
					
				@ -9,7 +9,7 @@
 | 
			
		||||
#if defined(GLEW_MX)
 | 
			
		||||
GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
 | 
			
		||||
#else
 | 
			
		||||
GLboolean glxewContextIsSupported (const char* name)
 | 
			
		||||
GLboolean glxewIsSupported (const char* name)
 | 
			
		||||
#endif
 | 
			
		||||
{
 | 
			
		||||
  const GLubyte* pos = (const GLubyte*)name;
 | 
			
		||||
 | 
			
		||||
@ -9,7 +9,7 @@
 | 
			
		||||
#if defined(GLEW_MX)
 | 
			
		||||
GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
 | 
			
		||||
#else
 | 
			
		||||
GLboolean GLEWAPIENTRY wglewContextIsSupported (const char* name)
 | 
			
		||||
GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
 | 
			
		||||
#endif
 | 
			
		||||
{
 | 
			
		||||
  const GLubyte* pos = (const GLubyte*)name;
 | 
			
		||||
 | 
			
		||||
@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const GLXEWContext *ctx,
 | 
			
		||||
#else /* GLEW_MX */
 | 
			
		||||
 | 
			
		||||
GLEWAPI GLenum GLEWAPIENTRY glxewContextInit ();
 | 
			
		||||
GLEWAPI GLboolean GLEWAPIENTRY glxewContextIsSupported (const char *name);
 | 
			
		||||
GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
 | 
			
		||||
 | 
			
		||||
#define glxewInit() glxewContextInit()
 | 
			
		||||
#define glxewIsSupported(x) glxewContextIsSupported(x)
 | 
			
		||||
 | 
			
		||||
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
 | 
			
		||||
#define GLXEW_GET_FUN(x) x
 | 
			
		||||
 | 
			
		||||
@ -15,10 +15,9 @@ GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx,
 | 
			
		||||
#else /* GLEW_MX */
 | 
			
		||||
 | 
			
		||||
GLEWAPI GLenum GLEWAPIENTRY wglewContextInit ();
 | 
			
		||||
GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const char *name);
 | 
			
		||||
GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
 | 
			
		||||
 | 
			
		||||
#define wglewInit() wglewContextInit()
 | 
			
		||||
#define wglewIsSupported(x) wglewContextIsSupported(x)
 | 
			
		||||
 | 
			
		||||
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
 | 
			
		||||
#define WGLEW_GET_FUN(x) x
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user