Changeset 43182 in vbox
- Timestamp:
- Sep 4, 2012 7:21:41 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80568
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c
r41380 r43182 55 55 return -1; 56 56 } 57 cr_server.MainContextInfo.pContext = crStateCreateContext(&cr_server.limits, visualBits, NULL); 58 CRASSERT(cr_server.MainContextInfo.pContext); 57 59 cr_server.firstCallCreateContext = GL_FALSE; 58 60 fFirst = GL_TRUE; … … 265 267 } 266 268 pNode = pNode->next; 269 } 270 271 if (cr_server.currentCtxInfo == crCtxInfo) 272 { 273 cr_server.currentCtxInfo = &cr_server.MainContextInfo; 267 274 } 268 275 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r41949 r43182 310 310 */ 311 311 cr_server.contextTable = crAllocHashtable(); 312 cr_server.MainContextInfo.pContext = crStateCreateContext( &cr_server.limits,313 CR_RGB_BIT | CR_DEPTH_BIT, NULL );314 312 cr_server.curClient->currentCtxInfo = &cr_server.MainContextInfo; 315 313 … … 388 386 */ 389 387 cr_server.contextTable = crAllocHashtable(); 390 cr_server.MainContextInfo.pContext = crStateCreateContext( &cr_server.limits,391 CR_RGB_BIT | CR_DEPTH_BIT, NULL );392 388 // cr_server.pContextCreateInfoTable = crAllocHashtable(); 393 389 cr_server.pWindowCreateInfoTable = crAllocHashtable(); … … 1395 1391 1396 1392 if (mural->screenId != *sIndex) 1397 return;1398 1399 if (!mural->width || !mural->height)1400 1393 return; 1401 1394 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c
r41404 r43182 101 101 int overlappingScreenCount, primaryS, i; 102 102 103 if (!mural->width || !mural->height) 104 return; 105 103 106 if (cr_server.screenCount<2 && !cr_server.bForceOffscreenRendering) 104 107 { … … 252 255 } 253 256 254 crStateGetCurrent()->buffer.width = 0; 255 crStateGetCurrent()->buffer.height = 0; 257 if (cr_server.curClient && cr_server.curClient->currentMural == mural) 258 { 259 crStateGetCurrent()->buffer.width = 0; 260 crStateGetCurrent()->buffer.height = 0; 261 } 256 262 } 257 263 else … … 271 277 } 272 278 273 crStateGetCurrent()->buffer.width = mural->width; 274 crStateGetCurrent()->buffer.height = mural->height; 279 if (cr_server.curClient && cr_server.curClient->currentMural == mural) 280 { 281 crStateGetCurrent()->buffer.width = mural->width; 282 crStateGetCurrent()->buffer.height = mural->height; 283 } 275 284 } 276 285 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c
r42517 r43182 103 103 104 104 crServerSetupOutputRedirect(mural); 105 106 crStateGetCurrent()->buffer.width = mural->width;107 crStateGetCurrent()->buffer.height = mural->height;108 105 } 109 106 … … 170 167 { 171 168 cr_server.currentWindow = -1; 172 crServerRedirMuralFBO(mural, GL_FALSE); 173 crServerDeleteMuralFBO(mural); 174 } 169 } 170 171 crServerRedirMuralFBO(mural, GL_FALSE); 172 crServerDeleteMuralFBO(mural); 175 173 176 174 crDebug("CRServer: Destroying window %d (spu window %d)", window, mural->spuWindow); … … 262 260 mural->height = height; 263 261 264 crStateGetCurrent()->buffer.width = mural->width; 265 crStateGetCurrent()->buffer.height = mural->height; 266 267 if (!width || !height) 268 { 269 crServerDispatchWindowVisibleRegion(window, 0, NULL); 270 return; 262 if (cr_server.curClient && cr_server.curClient->currentMural == mural) 263 { 264 crStateGetCurrent()->buffer.width = mural->width; 265 crStateGetCurrent()->buffer.height = mural->height; 271 266 } 272 267 … … 302 297 mural->gY = y; 303 298 304 if (!mural->width || !mural->height)305 return;306 307 299 crServerCheckMuralGeometry(mural); 308 300 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r41929 r43182 90 90 HWND hWnd; 91 91 HDC device_context; 92 HRGN hRgn; 92 93 #elif defined(DARWIN) 93 94 # ifndef VBOX_WITH_COCOA_QT
Note:
See TracChangeset
for help on using the changeset viewer.