Changeset 3428 in vbox
- Timestamp:
- Jul 4, 2007 5:16:28 PM (18 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp
r3426 r3428 132 132 { 133 133 if (pClient->hdc) 134 DeleteDC(pClient->hdc);134 ReleaseDC(pClient->hwnd, pClient->hdc); 135 135 PostMessage(pClient->hwnd, WM_CLOSE, 0, 0); 136 136 pClient->hwnd = 0; … … 425 425 ppfd = (LPPIXELFORMATDESCRIPTOR)pClient->pLastParam; 426 426 427 hdc = VBOX_OGL_GUEST_TO_HOST_HDC(hdc); 428 if (!hdc) 429 hdc = GetDC(0); 430 427 431 Log(("DrvDescribePixelFormat %x %d %d %x\n", hdc, iPixelFormat, nBytes, ppfd)); 428 pClient->lastretval = DescribePixelFormat( VBOX_OGL_GUEST_TO_HOST_HDC(hdc), iPixelFormat, nBytes, ppfd);432 pClient->lastretval = DescribePixelFormat(hdc, iPixelFormat, nBytes, ppfd); 429 433 if (!pClient->lastretval) 430 434 Log(("DescribePixelFormat failed with %d\n", GetLastError())); 431 } 435 436 if (!VBOX_OGL_GUEST_TO_HOST_HDC(hdc)) 437 ReleaseDC(0, pClient->hdc); 438 } -
trunk/src/VBox/HostServices/SharedOpenGL/service.cpp
r3399 r3428 209 209 else 210 210 if ( paParms[0].type != VBOX_HGCM_SVC_PARM_PTR /* pCmdBuffer */ 211 || paParms[1].type != VBOX_HGCM_SVC_PARM_ PTR /* pLastParam*/212 || paParms[2].type != VBOX_HGCM_SVC_PARM_ 32BIT /* cCommands*/211 || paParms[1].type != VBOX_HGCM_SVC_PARM_32BIT /* cCommands */ 212 || paParms[2].type != VBOX_HGCM_SVC_PARM_PTR /* pLastParam */ 213 213 || paParms[3].type != VBOX_HGCM_SVC_PARM_64BIT /* retval */ 214 214 || paParms[4].type != VBOX_HGCM_SVC_PARM_32BIT /* lasterror */ … … 227 227 228 228 /* Save the last parameter of the last command in the client structure so the macro can pick it up there */ 229 pClient->pLastParam = (uint8_t *)paParms[ 1].u.pointer.addr;230 pClient->cbLastParam = paParms[ 1].u.pointer.size;229 pClient->pLastParam = (uint8_t *)paParms[2].u.pointer.addr; 230 pClient->cbLastParam = paParms[2].u.pointer.size; 231 231 232 232 /* Execute the function. */ -
trunk/src/VBox/HostServices/SharedOpenGL/vboxgl.cpp
r3338 r3428 135 135 136 136 *pLastRetVal = pClient->lastretval; 137 *pLastError = glGetError();137 *pLastError = 0; //glGetError(); 138 138 139 139 #ifdef DEBUG
Note:
See TracChangeset
for help on using the changeset viewer.