- Timestamp:
- Aug 7, 2013 7:35:01 PM (11 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server.h
r47599 r47602 419 419 420 420 void CrDpResize(PCR_DISPLAY pDisplay, int32_t xPos, int32_t yPos, uint32_t width, uint32_t height); 421 void CrDpEntryInit(PCR_DISPLAY_ENTRY pEntry, const VBOXVR_TEXTURE *pTextureData );421 void CrDpEntryInit(PCR_DISPLAY_ENTRY pEntry, const VBOXVR_TEXTURE *pTextureData, uint32_t fFlags); 422 422 void CrDpEntryCleanup(PCR_DISPLAY pDisplay, PCR_DISPLAY_ENTRY pEntry); 423 423 int CrDpEntryRegionsSet(PCR_DISPLAY pDisplay, PCR_DISPLAY_ENTRY pEntry, const RTPOINT *pPos, uint32_t cRegions, const RTRECT *paRegions); … … 438 438 int CrDemInit(PCR_DISPLAY_ENTRY_MAP pMap); 439 439 void CrDemTerm(PCR_DISPLAY_ENTRY_MAP pMap); 440 PCR_DISPLAY_ENTRY CrDemEntryAcquire(PCR_DISPLAY_ENTRY_MAP pMap, GLuint idTexture );440 PCR_DISPLAY_ENTRY CrDemEntryAcquire(PCR_DISPLAY_ENTRY_MAP pMap, GLuint idTexture, uint32_t fFlags); 441 441 void CrDemEntryRelease(PCR_DISPLAY_ENTRY pEntry); 442 442 int CrDemEntrySaveState(PCR_DISPLAY_ENTRY pEntry, PSSMHANDLE pSSM); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r47599 r47602 276 276 } 277 277 278 void CrDpEntryInit(PCR_DISPLAY_ENTRY pEntry, const VBOXVR_TEXTURE *pTextureData )278 void CrDpEntryInit(PCR_DISPLAY_ENTRY pEntry, const VBOXVR_TEXTURE *pTextureData, uint32_t fFlags) 279 279 { 280 280 CrVrScrCompositorEntryInit(&pEntry->CEntry, pTextureData, crDpEntryCEntryReleaseCB); 281 CrVrScrCompositorEntryFlagsSet(&pEntry->CEntry, CRBLT_F_INVERT_SRC_YCOORDS);281 CrVrScrCompositorEntryFlagsSet(&pEntry->CEntry, fFlags); 282 282 CrVrScrCompositorEntryInit(&pEntry->RootVrCEntry, pTextureData, NULL); 283 CrVrScrCompositorEntryFlagsSet(&pEntry->RootVrCEntry, CRBLT_F_INVERT_SRC_YCOORDS);283 CrVrScrCompositorEntryFlagsSet(&pEntry->RootVrCEntry, fFlags); 284 284 } 285 285 … … 447 447 AssertRCReturn(rc, rc); 448 448 449 PCR_DISPLAY_ENTRY pEntry = CrDemEntryAcquire(pMap, u32 );449 PCR_DISPLAY_ENTRY pEntry = CrDemEntryAcquire(pMap, u32, CRBLT_F_INVERT_SRC_YCOORDS); 450 450 if (!pEntry) 451 451 { … … 458 458 } 459 459 460 PCR_DISPLAY_ENTRY CrDemEntryAcquire(PCR_DISPLAY_ENTRY_MAP pMap, GLuint idTexture )460 PCR_DISPLAY_ENTRY CrDemEntryAcquire(PCR_DISPLAY_ENTRY_MAP pMap, GLuint idTexture, uint32_t fFlags) 461 461 { 462 462 CR_DEM_ENTRY *pDemEntry = NULL; … … 501 501 } 502 502 503 CrDpEntryInit(&pDemEntry->Entry, &TextureData );503 CrDpEntryInit(&pDemEntry->Entry, &TextureData, fFlags); 504 504 505 505 CR_DEM_ENTRY_INFO *pInfo = (CR_DEM_ENTRY_INFO*)crHashtableSearch(pMap->pTexIdToDemInfoMap, pTobj->id); … … 814 814 if (texture) 815 815 { 816 pEntry = CrDemEntryAcquire(&cr_server.PresentTexturepMap, texture );816 pEntry = CrDemEntryAcquire(&cr_server.PresentTexturepMap, texture, (cfg & CR_PRESENT_FLAG_TEX_NONINVERT_YCOORD) ? 0 : CRBLT_F_INVERT_SRC_YCOORDS); 817 817 if (!pEntry) 818 818 {
Note:
See TracChangeset
for help on using the changeset viewer.