Changeset 39815 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Timestamp:
- Jan 20, 2012 9:32:29 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75809
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c
r39265 r39815 231 231 { 232 232 CRMuralInfo *mural, *oldMural; 233 CRContext *ctx ;233 CRContext *ctx, *oldCtx; 234 234 235 235 if (context >= 0 && window >= 0) { … … 267 267 return; 268 268 } 269 270 /* Ubuntu 11.04 hosts misbehave if context window switch is 271 * done with non-default framebuffer object settings. 272 * crStateSwichPrepare & crStateSwichPostprocess are supposed to work around this problem 273 * crStateSwichPrepare restores the FBO state to its default values before the context window switch, 274 * while crStateSwichPostprocess restores it back to the original values */ 275 oldCtx = crStateSwichPrepare(ctx); 269 276 270 277 /* … … 326 333 crStateMakeCurrent( ctx ); 327 334 335 crStateSwichPostprocess(oldCtx); 336 328 337 if (oldMural != mural && crServerSupportRedirMuralFBO()) 329 338 {
Note:
See TracChangeset
for help on using the changeset viewer.