Changeset 46966 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Timestamp:
- Jul 4, 2013 6:08:11 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86974
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c
r46395 r46966 112 112 { 113 113 s->refCount--; 114 Assert(s->refCount >= 0); 114 115 if (s->refCount <= 0) { 115 116 if (s==gSharedState) … … 125 126 } 126 127 #ifndef IN_GUEST 127 else 128 else if (pContext) 128 129 { 129 130 /* evaluate usage bits*/ … … 137 138 } 138 139 #endif 140 } 141 142 DECLEXPORT(CRSharedState *) crStateGlobalSharedAcquire() 143 { 144 if (!gSharedState) 145 { 146 crWarning("No Global Shared State!"); 147 return NULL; 148 } 149 gSharedState->refCount++; 150 return gSharedState; 151 } 152 153 DECLEXPORT(void) crStateGlobalSharedRelease() 154 { 155 crStateFreeShared(NULL, gSharedState); 139 156 } 140 157
Note:
See TracChangeset
for help on using the changeset viewer.