Changeset 20975 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Timestamp:
- Jun 26, 2009 1:56:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c
r15532 r20975 37 37 38 38 #ifdef IN_GUEST 39 b->retainBufferData = GL_TRUE; 40 #else 39 41 b->retainBufferData = GL_FALSE; 40 #else41 b->retainBufferData = GL_TRUE;42 42 #endif 43 43 … … 51 51 52 52 53 static void crStateFreeBufferObject(void *data) 54 { 55 CRBufferObject *pObj = (CRBufferObject *)data; 56 if (pObj->data) crFree(pObj->data); 57 crFree(pObj); 58 } 59 53 60 void crStateBufferObjectDestroy (CRContext *ctx) 54 61 { 55 62 CRBufferObjectState *b = &ctx->bufferobject; 56 crFreeHashtable(b->buffers, cr Free);63 crFreeHashtable(b->buffers, crStateFreeBufferObject); 57 64 crFree(b->nullBuffer); 58 65 } … … 119 126 120 127 if (oldObj->refCount <= 0) { 121 crHashtableDelete(b->buffers, (unsigned long) oldObj->name, crFree); 128 /*we shouldn't reach this point*/ 129 CRASSERT(false); 130 crHashtableDelete(b->buffers, (unsigned long) oldObj->name, crStateFreeBufferObject); 122 131 } 123 132 } … … 165 174 /* XXX check bindings with the vertex arrays */ 166 175 167 crHashtableDelete(b->buffers, buffers[i], cr Free);176 crHashtableDelete(b->buffers, buffers[i], crStateFreeBufferObject); 168 177 } 169 178 }
Note:
See TracChangeset
for help on using the changeset viewer.