Changeset 52329 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Aug 8, 2014 6:34:02 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95454
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-4.3 merged: 95451
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.3/src/VBox merged: 95451
- Property svn:mergeinfo changed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c
r51559 r52329 11 11 #include "cr_string.h" 12 12 #include "cr_pixeldata.h" 13 #ifdef VBOX_WITH_CRDUMPER 14 # include "cr_dump.h" 15 #endif 13 16 14 17 void SERVER_DISPATCH_APIENTRY crServerDispatchSelectBuffer( GLsizei size, GLuint *buffer ) … … 311 314 case GL_RCUSAGE_TEXTURE_CLEAR_CR: 312 315 crStateSetTextureUsed(value, GL_FALSE); 316 break; 317 case GL_PIN_TEXTURE_SET_CR: 318 crStatePinTexture(value, GL_TRUE); 319 break; 320 case GL_PIN_TEXTURE_CLEAR_CR: 321 crStatePinTexture(value, GL_FALSE); 313 322 break; 314 323 case GL_SHARED_DISPLAY_LISTS_CR: … … 1486 1495 #ifdef VBOX_WITH_CRSERVER_DUMPER 1487 1496 1497 # ifndef VBOX_WITH_CRDUMPER 1498 # error "VBOX_WITH_CRDUMPER undefined!" 1499 # endif 1500 1488 1501 /* first four bits are buffer dump config 1489 1502 * second four bits are texture dump config -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r51975 r52329 1047 1047 if (pTobj) 1048 1048 { 1049 CR_STATE_SHAREDOBJ_USAGE_CLEAR(pTobj, cr_server.MainContextInfo.pContext);1050 1051 1049 crHashtableDelete(g_CrPresenter.pFbTexMap, pTobj->id, NULL); 1052 1050 1053 if (!CR_STATE_SHAREDOBJ_USAGE_IS_USED(pTobj)) 1054 { 1055 CRSharedState *pShared = crStateGlobalSharedAcquire(); 1056 1057 CRASSERT(pShared); 1058 /* on the host side, we need to delete an ogl texture object here as well, which crStateDeleteTextureCallback will do 1059 * in addition to calling crStateDeleteTextureObject to delete a state object */ 1060 crHashtableDelete(pShared->textureTable, pTobj->id, crStateDeleteTextureCallback); 1061 1062 crStateGlobalSharedRelease(); 1063 } 1051 crStateReleaseTexture(cr_server.MainContextInfo.pContext, pTobj); 1052 1064 1053 1065 1054 crStateGlobalSharedRelease();
Note:
See TracChangeset
for help on using the changeset viewer.