Changeset 47158 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jul 15, 2013 12:37:15 PM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r46783 r47158 1243 1243 else /* Execute the function. */ 1244 1244 { 1245 rc = crVBoxServerSetOffscreenRendering(GL_TRUE); 1246 1247 if (RT_SUCCESS(rc)) 1245 if (pOutputRedirect->H3DORBegin != NULL) 1248 1246 { 1249 CROutputRedirect outputRedirect; 1250 outputRedirect.pvContext = pOutputRedirect->pvContext; 1251 outputRedirect.CRORBegin = pOutputRedirect->H3DORBegin; 1252 outputRedirect.CRORGeometry = pOutputRedirect->H3DORGeometry; 1253 outputRedirect.CRORVisibleRegion = pOutputRedirect->H3DORVisibleRegion; 1254 outputRedirect.CRORFrame = pOutputRedirect->H3DORFrame; 1255 outputRedirect.CROREnd = pOutputRedirect->H3DOREnd; 1256 outputRedirect.CRORContextProperty = pOutputRedirect->H3DORContextProperty; 1257 rc = crVBoxServerOutputRedirectSet(&outputRedirect); 1247 rc = crVBoxServerSetOffscreenRendering(GL_TRUE); 1248 1249 if (RT_SUCCESS(rc)) 1250 { 1251 CROutputRedirect outputRedirect; 1252 outputRedirect.pvContext = pOutputRedirect->pvContext; 1253 outputRedirect.CRORBegin = pOutputRedirect->H3DORBegin; 1254 outputRedirect.CRORGeometry = pOutputRedirect->H3DORGeometry; 1255 outputRedirect.CRORVisibleRegion = pOutputRedirect->H3DORVisibleRegion; 1256 outputRedirect.CRORFrame = pOutputRedirect->H3DORFrame; 1257 outputRedirect.CROREnd = pOutputRedirect->H3DOREnd; 1258 outputRedirect.CRORContextProperty = pOutputRedirect->H3DORContextProperty; 1259 rc = crVBoxServerOutputRedirectSet(&outputRedirect); 1260 } 1261 } 1262 else 1263 { 1264 /* Redirection is disabled. */ 1265 crVBoxServerSetOffscreenRendering(GL_FALSE); 1266 crVBoxServerOutputRedirectSet(NULL); 1258 1267 } 1259 1268 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r47116 r47158 2941 2941 } 2942 2942 2943 static void crVBoxServerOutputRedirectCB(unsigned long key, void *data1, void *data2) 2944 { 2945 CRMuralInfo *mural = (CRMuralInfo*) data1; 2946 2947 crServerSetupOutputRedirect(mural); 2948 } 2949 2943 2950 DECLEXPORT(int32_t) crVBoxServerOutputRedirectSet(const CROutputRedirect *pCallbacks) 2944 2951 { … … 2954 2961 } 2955 2962 2956 / / @todo dynamically intercept already existing output:2957 //crHashtableWalk(cr_server.muralTable, crVBoxServerOutputRedirectCB, NULL);2963 /* dynamically intercept already existing output */ 2964 crHashtableWalk(cr_server.muralTable, crVBoxServerOutputRedirectCB, NULL); 2958 2965 2959 2966 return VINF_SUCCESS; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c
r47116 r47158 103 103 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance, 104 104 mural->cVisibleRects, (RTRECT *)mural->pVisibleRects); 105 106 crServerPresentFBO(mural); 105 107 } 106 108 }
Note:
See TracChangeset
for help on using the changeset viewer.