mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-10-31 20:52:47 +00:00 
			
		
		
		
	Mostly this is quick, "do nothing" ifdefs when built with SYSTEM=linux-osmesa, to support the off-screen rendering mode of Mesa in headless tests. Support in glewinfo and visualinfo is enough to get them compile, but insufficient for them to run successfully.
		
			
				
	
	
		
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			C
		
	
	
	
	
	
|     }
 | |
|     ret = (len == 0);
 | |
|   }
 | |
|   return ret;
 | |
| }
 | |
| 
 | |
| #if defined(GLEW_OSMESA)
 | |
| #elif defined(_WIN32)
 | |
| 
 | |
| #if defined(GLEW_MX)
 | |
| GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
 | |
| #else
 | |
| GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
 | |
| #endif
 | |
| {
 | |
|   const GLubyte* pos = (const GLubyte*)name;
 | |
|   GLuint len = _glewStrLen(pos);
 | |
|   GLboolean ret = GL_TRUE;
 | |
|   while (ret && len > 0)
 | |
|   {
 | |
|     if (_glewStrSame1(&pos, &len, (const GLubyte*)"WGL_", 4))
 | |
|     {
 |