Changeset 56922 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_lists.c
- Timestamp:
- Jul 13, 2015 10:23:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_lists.c
r56566 r56922 7 7 * glListBase and glIsList. 8 8 * 9 * Pr ivide OpenGL IDs mapping between host and guest.9 * Provide OpenGL IDs mapping between host and guest. 10 10 */ 11 11 … … 57 57 crdlmFreeDisplayListElements(pListInfo->first); 58 58 pListInfo->first = pListInfo->last = NULL; 59 60 /* The references list has no allocated information; it's61 * just a set of entries. So we don't need to free any62 * information as each entry is deleted.63 */64 crFreeHashtable(pListInfo->references, NULL);65 59 66 60 /* Free host OpenGL resources. */ … … 191 185 listInfo->first = listInfo->last = NULL; 192 186 listInfo->stateFirst = listInfo->stateLast = NULL; 193 listInfo->references = crAllocHashtable(); 194 if (listInfo->references) 195 { 196 listInfo->numInstances = 0; 197 listInfo->listSent = GL_FALSE; 198 listInfo->bbox.xmin = FLT_MAX; 199 listInfo->bbox.xmax = -FLT_MAX; 200 listInfo->bbox.ymin = FLT_MAX; 201 listInfo->bbox.ymax = -FLT_MAX; 202 listInfo->bbox.zmin = FLT_MAX; 203 listInfo->bbox.zmax = -FLT_MAX; 204 205 listState->currentListInfo = listInfo; 206 listState->currentListIdentifier = list; 207 listState->currentListMode = mode; 208 209 dispatchTable->NewList(listInfo->hwid, mode); 210 211 crDebug("DLM: create new list with [guest, host] ID pair [%u, %u].", list, listInfo->hwid); 212 213 return; 214 } 215 else 216 crDebug("DLM: Could not allocate memory in NewList."); 187 188 listInfo->numInstances = 0; 189 190 listState->currentListInfo = listInfo; 191 listState->currentListIdentifier = list; 192 listState->currentListMode = mode; 193 194 dispatchTable->NewList(listInfo->hwid, mode); 195 196 crDebug("DLM: create new list with [guest, host] ID pair [%u, %u].", list, listInfo->hwid); 197 198 return; 217 199 } 218 200 else
Note:
See TracChangeset
for help on using the changeset viewer.