- 時間撮記:
- 2014-1-17 下午06:32:44 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器