VirtualBox

Ignore:
Timestamp:
Dec 12, 2012 2:21:32 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: more state fixes & corrections

File:
1 edited

Legend:

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

    r44105 r44108  
    372372                CR_STATE_SHAREDOBJ_USAGE_FOREACH_USED_IDX(obj, j)
    373373                {
     374                    /* saved state version <= SHCROGL_SSM_VERSION_BEFORE_CTXUSAGE_BITS does not have usage bits info,
     375                     * so on restore, we set mark bits as used.
     376                     * This is why g_pAvailableContexts[j] could be NULL
     377                     * also g_pAvailableContexts[0] will hold default context, which we should discard */
    374378                    CRContext *ctx = g_pAvailableContexts[j];
    375                     CRASSERT(ctx);
    376                     ctStateBuffersRefsCleanup(ctx, obj, g->neg_bitid); /* <- yes, use g->neg_bitid, i.e. neg_bitid of the current context to ensure others bits get dirtified,
    377                                                                         * but not the current context ones*/
     379                    if (j && ctx)
     380                    {
     381                        ctStateBuffersRefsCleanup(ctx, obj, g->neg_bitid); /* <- yes, use g->neg_bitid, i.e. neg_bitid of the current context to ensure others bits get dirtified,
     382                                                                            * but not the current context ones*/
     383                    }
     384                    else
     385                        CR_STATE_SHAREDOBJ_USAGE_CLEAR_IDX(obj, j);
    378386                }
    379387
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