VirtualBox

Ignore:
Timestamp:
Apr 25, 2012 7:34:43 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: fix gl resource leaking (server part)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c

    r38394 r41057  
    2323        b->access = GL_READ_WRITE_ARB;
    2424        b->bResyncOnRead = GL_FALSE;
     25#ifndef IN_GUEST
     26        CR_STATE_SHAREDOBJ_USAGE_INIT(b);
     27#endif
    2528    }
    2629    return b;
     
    189192            crHashtableAdd( g->shared->buffersTable, buffer, newObj );
    190193        }
     194
     195#ifndef IN_GUEST
     196        CR_STATE_SHAREDOBJ_USAGE_SET(newObj, g);
     197#endif
    191198    }
    192199
Note: See TracChangeset for help on using the changeset viewer.

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