VirtualBox

Ignore:
Timestamp:
Jan 17, 2014 6:32:44 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    r49216 r50100  
    14271427}
    14281428
    1429 static int32_t crStateLoadKeys(CRHashTable *pHash, PSSMHANDLE pSSM)
     1429static int32_t crStateLoadKeys(CRHashTable *pHash, PSSMHANDLE pSSM, uint32_t u32Version)
    14301430{
    14311431    uint32_t u32Key, u32Count, i;
     
    14441444        CRASSERT(u32Count);
    14451445
    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            }
    14501453        }
    14511454    }
     
    22322235        if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS)
    22332236        {
    2234             rc = crStateLoadKeys(pContext->shared->buffersTable, pSSM);
     2237            rc = crStateLoadKeys(pContext->shared->buffersTable, pSSM, u32Version);
    22352238            AssertRCReturn(rc, rc);
    22362239        }
     
    23422345        if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS)
    23432346        {
    2344             rc = crStateLoadKeys(pContext->shared->textureTable, pSSM);
     2347            rc = crStateLoadKeys(pContext->shared->textureTable, pSSM, u32Version);
    23452348            AssertRCReturn(rc, rc);
    23462349        }
     
    24712474        if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS)
    24722475        {
    2473             rc = crStateLoadKeys(pContext->shared->fbTable, pSSM);
     2476            rc = crStateLoadKeys(pContext->shared->fbTable, pSSM, u32Version);
    24742477            AssertRCReturn(rc, rc);
    24752478        }
     
    24962499        if (u32Version >= SHCROGL_SSM_VERSION_WITH_ALLOCATED_KEYS)
    24972500        {
    2498             rc = crStateLoadKeys(pContext->shared->rbTable, pSSM);
     2501            rc = crStateLoadKeys(pContext->shared->rbTable, pSSM, u32Version);
    24992502            AssertRCReturn(rc, rc);
    25002503        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette