Changeset 50100 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
- Timestamp:
- Jan 17, 2014 6:32:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
r49216 r50100 1427 1427 } 1428 1428 1429 static int32_t crStateLoadKeys(CRHashTable *pHash, PSSMHANDLE pSSM )1429 static int32_t crStateLoadKeys(CRHashTable *pHash, PSSMHANDLE pSSM, uint32_t u32Version) 1430 1430 { 1431 1431 uint32_t u32Key, u32Count, i; … … 1444 1444 CRASSERT(u32Count); 1445 1445 1446 for (i = u32Key; i < u32Count + u32Key; ++i) 1447 { 1448 GLboolean fIsNew = crHashtableAllocRegisterKey(pHash, i); 1449 CRASSERT(fIsNew); 1446 if (u32Version > SHCROGL_SSM_VERSION_WITH_BUGGY_KEYS) 1447 { 1448 for (i = u32Key; i < u32Count + u32Key; ++i) 1449 { 1450 GLboolean fIsNew = crHashtableAllocRegisterKey(pHash, i); 1451 CRASSERT(fIsNew); 1452 } 1450 1453 } 1451 1454 } … … 2232 2235 if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS) 2233 2236 { 2234 rc = crStateLoadKeys(pContext->shared->buffersTable, pSSM );2237 rc = crStateLoadKeys(pContext->shared->buffersTable, pSSM, u32Version); 2235 2238 AssertRCReturn(rc, rc); 2236 2239 } … … 2342 2345 if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS) 2343 2346 { 2344 rc = crStateLoadKeys(pContext->shared->textureTable, pSSM );2347 rc = crStateLoadKeys(pContext->shared->textureTable, pSSM, u32Version); 2345 2348 AssertRCReturn(rc, rc); 2346 2349 } … … 2471 2474 if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS) 2472 2475 { 2473 rc = crStateLoadKeys(pContext->shared->fbTable, pSSM );2476 rc = crStateLoadKeys(pContext->shared->fbTable, pSSM, u32Version); 2474 2477 AssertRCReturn(rc, rc); 2475 2478 } … … 2496 2499 if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS) 2497 2500 { 2498 rc = crStateLoadKeys(pContext->shared->rbTable, pSSM );2501 rc = crStateLoadKeys(pContext->shared->rbTable, pSSM, u32Version); 2499 2502 AssertRCReturn(rc, rc); 2500 2503 }
Note:
See TracChangeset
for help on using the changeset viewer.