Changeset 29376 in vbox for trunk/src/VBox/GuestHost/OpenGL/spu_loader
- Timestamp:
- May 11, 2010 4:25:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/spu_loader/glloader.py
r28022 r29376 36 36 #include <string.h> /* VBOX */ 37 37 #elif defined(IRIX) || defined(IRIX64) || defined(Linux) || defined(FreeBSD) || defined(AIX) || defined(SunOS) || defined(OSF1) 38 #if defined(Linux) 38 #if defined(Linux) || defined(SunOS) /* bird: why not all? */ 39 39 #include <string.h> 40 40 #endif … … 302 302 # endif 303 303 #endif 304 304 305 305 crDebug( "Looking for the system's OpenGL library..." ); 306 306 #ifdef DARWIN … … 314 314 return 0; 315 315 } 316 316 317 317 crDebug( "Found it in %s.", !env_syspath ? "default path" : env_syspath ); 318 318 … … 490 490 if (!entry) 491 491 return 1; /* token value */ 492 492 493 493 for (i = 0; coreFunctions[i]; i++) { 494 494 const char *name = coreFunctions[i]; … … 573 573 574 574 #ifdef USE_OSMESA 575 int crLoadOSMesa( OSMesaContext (**createContext)( GLenum format, OSMesaContext sharelist ), 576 GLboolean (**makeCurrent)( OSMesaContext ctx, GLubyte *buffer, 575 int crLoadOSMesa( OSMesaContext (**createContext)( GLenum format, OSMesaContext sharelist ), 576 GLboolean (**makeCurrent)( OSMesaContext ctx, GLubyte *buffer, 577 577 GLenum type, GLsizei width, GLsizei height ), 578 578 void (**destroyContext)( OSMesaContext ctx )) … … 581 581 582 582 const char *env_syspath = crGetenv( "CR_SYSTEM_GL_PATH" ); 583 583 584 584 crDebug( "Looking for the system's OSMesa library..." ); 585 585 osMesaDll = __findSystemLib( env_syspath, "libOSMesa.so" ); … … 595 595 crDLLGetNoError( osMesaDll, "OSMesaCreateContext" ); 596 596 597 *makeCurrent = (GLboolean (*) ( OSMesaContext ctx, GLubyte *buffer, 597 *makeCurrent = (GLboolean (*) ( OSMesaContext ctx, GLubyte *buffer, 598 598 GLenum type, GLsizei width, GLsizei height )) 599 599 crDLLGetNoError( osMesaDll, "OSMesaMakeCurrent" ); … … 604 604 return 1; 605 605 } 606 #endif 606 #endif 607 607 608 608 """
Note:
See TracChangeset
for help on using the changeset viewer.