VirtualBox

Ignore:
Timestamp:
Jan 14, 2013 9:49:11 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83199
Message:

crOpenGL: saved state fixes & improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/hash.c

    r44193 r44290  
    2424} FreeElem;
    2525
    26 typedef struct CRHashIdPoolRec {
     26typedef struct CRHashIdPool {
    2727    RTLISTNODE freeList;
    2828} CRHashIdPool;
     
    4444
    4545
    46 static CRHashIdPool *crAllocHashIdPool( void )
     46CRHashIdPool *crAllocHashIdPool( void )
    4747{
    4848    CRHashIdPool *pool = (CRHashIdPool *) crCalloc(sizeof(CRHashIdPool));
     
    5555}
    5656
    57 static void crFreeHashIdPool( CRHashIdPool *pool )
     57void crFreeHashIdPool( CRHashIdPool *pool )
    5858{
    5959    FreeElem *i, *next;
     
    6565    crFree(pool);
    6666}
    67 
    68 static GLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id );
    6967
    7068#ifdef DEBUG_misha
     
    122120 * Return 0 if we fail.
    123121 */
    124 static GLuint crHashIdPoolAllocBlock( CRHashIdPool *pool, GLuint count )
     122GLuint crHashIdPoolAllocBlock( CRHashIdPool *pool, GLuint count )
    125123{
    126124    FreeElem *f, *next;
     
    157155 * Free a block of <count> IDs starting at <first>.
    158156 */
    159 static void crHashIdPoolFreeBlock( CRHashIdPool *pool, GLuint first, GLuint count )
     157void crHashIdPoolFreeBlock( CRHashIdPool *pool, GLuint first, GLuint count )
    160158{
    161159    FreeElem *f;
     
    249247 * Mark the given Id as being allocated.
    250248 */
    251 static GLboolean crHashIdPoolAllocId( CRHashIdPool *pool, GLuint id )
     249GLboolean crHashIdPoolAllocId( CRHashIdPool *pool, GLuint id )
    252250{
    253251    FreeElem *f, *next;
     
    315313 * Determine if the given id is free.  Return GL_TRUE if so.
    316314 */
    317 static GLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id )
     315GLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id )
    318316{
    319317    FreeElem *f;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette