Changeset 44108 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c
- Timestamp:
- Dec 12, 2012 2:21:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c
r44105 r44108 372 372 CR_STATE_SHAREDOBJ_USAGE_FOREACH_USED_IDX(obj, j) 373 373 { 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 */ 374 378 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); 378 386 } 379 387
Note:
See TracChangeset
for help on using the changeset viewer.