Changeset 47116 in vbox for trunk/src/VBox
- Timestamp:
- Jul 12, 2013 12:35:16 PM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h
r46037 r47116 35 35 /* dirty bits are not needed for now, remove */ 36 36 #define SHCROGL_SSM_VERSION_WITHOUT_DIRTY_BITS 38 37 #define SHCROGL_SSM_VERSION 38 37 /* dummy windows and contexts have 0 external IDs, so never get stored to the state */ 38 #define SHCROGL_SSM_VERSION_WITH_FIXED_DUMMYIDS 39 39 #define SHCROGL_SSM_VERSION 39 38 40 39 41 /* These define the Chromium release number. -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r46885 r47116 154 154 * and generally this should be zeroed up */ 155 155 cr_server.currentCtxInfo = NULL; 156 cr_server.currentWindow = 0;156 cr_server.currentWindow = -1; 157 157 cr_server.currentNativeWindow = 0; 158 158 cr_server.currentMural = NULL; … … 348 348 cr_server.u32Caps = 0; 349 349 #ifdef DEBUG_misha 350 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;350 // cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT; 351 351 #endif 352 352 } … … 460 460 cr_server.u32Caps = 0; 461 461 #ifdef DEBUG_misha 462 cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;462 // cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT; 463 463 #endif 464 464 } … … 1011 1011 return NULL; 1012 1012 } 1013 id = crServerMuralInit(pMural, "", visualBits, -1, GL_TRUE);1013 id = crServerMuralInit(pMural, "", visualBits, 0, GL_TRUE); 1014 1014 if (id < 0) 1015 1015 { … … 1707 1707 AssertRCReturn(rc, rc); 1708 1708 1709 if (pClient->currentCtxInfo && pClient->currentCtxInfo->pContext && pClient->currentContextNumber >=0)1709 if (pClient->currentCtxInfo && pClient->currentCtxInfo->pContext && pClient->currentContextNumber > 0) 1710 1710 { 1711 1711 b = crHashtableGetDataKey(cr_server.contextTable, pClient->currentCtxInfo, &key); … … 1715 1715 } 1716 1716 1717 if (pClient->currentMural && pClient->currentWindow >=0)1717 if (pClient->currentMural && pClient->currentWindow > 0) 1718 1718 { 1719 1719 b = crHashtableGetDataKey(cr_server.muralTable, pClient->currentMural, &key); … … 2460 2460 } 2461 2461 2462 CRASSERT( cr_server.currentCtxInfo == &cr_server.MainContextInfo);2462 CRASSERT(!uiNumElems || cr_server.currentCtxInfo == &cr_server.MainContextInfo); 2463 2463 2464 2464 cr_server.curClient = NULL; … … 2520 2520 cr_server.curClient = pClient; 2521 2521 2522 if (client.currentCtxInfo && client.currentContextNumber >=0)2522 if (client.currentCtxInfo && client.currentContextNumber > 0) 2523 2523 { 2524 2524 rc = crServerLsrDataGetMem(&Reader, &ctxID, sizeof(ctxID)); … … 2531 2531 } 2532 2532 2533 if (client.currentMural && client.currentWindow >=0)2533 if (client.currentMural && client.currentWindow > 0) 2534 2534 { 2535 2535 rc = crServerLsrDataGetMem(&Reader, &winID, sizeof(winID)); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c
r46989 r47116 379 379 void crServerRedirMuralFBO(CRMuralInfo *mural, GLuint redir) 380 380 { 381 if (!mural->CreateInfo.externalID)382 {383 crWarning("trying to change redir setting for internal mural %d", mural->spuWindow);384 return;385 }386 387 381 if (mural->fPresentMode == redir) 388 382 { 389 383 // if (redir) 390 384 // crWarning("crServerRedirMuralFBO called with the same redir status %d", redir); 385 return; 386 } 387 388 if (!mural->CreateInfo.externalID) 389 { 390 crWarning("trying to change redir setting for internal mural %d", mural->spuWindow); 391 391 return; 392 392 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r46966 r47116 63 63 { 64 64 const GLint visBits = cr_server.MainContextInfo.CreateInfo.visualBits; 65 if (crServerMuralInit(&pDisplay->Mural, "", visBits, -1, GL_FALSE) < 0)65 if (crServerMuralInit(&pDisplay->Mural, "", visBits, 0, GL_FALSE) < 0) 66 66 { 67 67 crWarning("crServerMuralInit failed!");
Note:
See TracChangeset
for help on using the changeset viewer.