Changeset 51005 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Timestamp:
- Apr 9, 2014 8:58:50 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93199
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c
r48491 r51005 678 678 * As above, but don't call crStateSwitchContext(). 679 679 */ 680 void crStateSetCurrent( CRContext *ctx)680 static void crStateSetCurrentEx( CRContext *ctx, GLboolean fCleanupDefault ) 681 681 { 682 682 CRContext *current = GetCurrentContext(); 683 683 684 if (ctx == NULL )684 if (ctx == NULL && !fCleanupDefault) 685 685 ctx = defaultContext; 686 686 687 687 if (current == ctx) 688 688 return; /* no-op */ 689 690 CRASSERT(ctx);691 689 692 690 #ifdef CHROMIUM_THREADSAFE … … 696 694 #endif 697 695 698 /* ensure matrix state is also current */ 699 crStateMatrixMode(ctx->transform.matrixMode); 696 if (ctx) 697 { 698 /* ensure matrix state is also current */ 699 crStateMatrixMode(ctx->transform.matrixMode); 700 } 701 } 702 703 void crStateSetCurrent( CRContext *ctx ) 704 { 705 crStateSetCurrentEx( ctx, GL_FALSE ); 706 } 707 708 void crStateCleanupCurrent() 709 { 710 crStateSetCurrentEx( NULL, GL_TRUE ); 700 711 } 701 712
Note:
See TracChangeset
for help on using the changeset viewer.