Changeset 18830 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Apr 7, 2009 3:44:27 PM (16 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r18721 r18830 224 224 GLint currentBufferName; 225 225 uint64_t uiDockUpdateTS; 226 bool fInit; 226 227 #endif /* RT_OS_DARWIN */ 227 228 } RenderSPU; -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_agl.c
r18721 r18830 109 109 UInt32 class = GetEventClass (event); 110 110 UInt32 kind = GetEventKind (event); 111 112 /* If we aren't initialized or even deinitialized already (as on VM 113 * shutdown) do nothing. */ 114 if (!render_spu.fInit) 115 return eventNotHandledErr; 111 116 112 117 /* Fetch the sender of the event */ -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c
r18722 r18830 39 39 crNetInit(NULL, NULL); 40 40 41 if (!crParseURL( render_spu.swap_master_url, protocol, hostname, 41 if (!crParseURL( render_spu.swap_master_url, protocol, hostname, 42 42 &port, 9876)) 43 43 crError( "Bad URL: %s", render_spu.swap_master_url ); … … 74 74 (void) unused; 75 75 76 /* Force system to create the message queue. 76 /* Force system to create the message queue. 77 77 * Else, there's a chance that render spu will issue PostThreadMessage 78 78 * before this thread calls GetMessage for first time. … … 102 102 103 103 *phWnd = CreateWindowEx(pCS->dwExStyle, pCS->lpszName, pCS->lpszClass, pCS->style, 104 pCS->x, pCS->y, pCS->cx, pCS->cy, 104 pCS->x, pCS->y, pCS->cx, pCS->cy, 105 105 pCS->hwndParent, pCS->hMenu, pCS->hInstance, &render_spu); 106 106 … … 117 117 else 118 118 { 119 TranslateMessage(&msg); 119 TranslateMessage(&msg); 120 120 DispatchMessage(&msg); 121 121 } … … 239 239 GetEventTypeCount(eventList), eventList, 240 240 NULL, NULL); 241 render_spu.fInit = true; 241 242 # endif /* !__LP64__ */ 242 243 #endif /* DARWIN */ … … 269 270 /* 270 271 * Get the OpenGL extension functions. 271 * SIGH -- we have to wait until the very bitter end to load the 272 * SIGH -- we have to wait until the very bitter end to load the 272 273 * extensions, because the context has to be bound before 273 274 * wglGetProcAddress will work correctly. No such issue with GLX though. … … 285 286 * but ARB for others. Need furthur testing here.... 286 287 */ 287 render_spu.ws.wglGetExtensionsStringEXT = 288 (wglGetExtensionsStringEXTFunc_t) 288 render_spu.ws.wglGetExtensionsStringEXT = 289 (wglGetExtensionsStringEXTFunc_t) 289 290 render_spu.ws.wglGetProcAddress( "wglGetExtensionsStringEXT" ); 290 render_spu.ws.wglChoosePixelFormatEXT = 291 render_spu.ws.wglChoosePixelFormatEXT = 291 292 (wglChoosePixelFormatEXTFunc_t) 292 293 render_spu.ws.wglGetProcAddress( "wglChoosePixelFormatARB" ); 293 render_spu.ws.wglGetPixelFormatAttribivEXT = 294 render_spu.ws.wglGetPixelFormatAttribivEXT = 294 295 (wglGetPixelFormatAttribivEXTFunc_t) 295 296 render_spu.ws.wglGetProcAddress( "wglGetPixelFormatAttribivARB" ); 296 render_spu.ws.wglGetPixelFormatAttribfvEXT = 297 render_spu.ws.wglGetPixelFormatAttribfvEXT = 297 298 (wglGetPixelFormatAttribfvEXTFunc_t) 298 299 render_spu.ws.wglGetProcAddress( "wglGetPixelFormatAttribfvARB" ); … … 301 302 { 302 303 _cr_render_table[numFuncs].name = crStrdup("TexImage3D"); 303 _cr_render_table[numFuncs].fn = (SPUGenericFunction) render_spu.ws.wglGetProcAddress("glTexImage3D"); 304 _cr_render_table[numFuncs].fn = (SPUGenericFunction) render_spu.ws.wglGetProcAddress("glTexImage3D"); 304 305 ++numFuncs; 305 306 crDebug("Render SPU: Found glTexImage3D function"); … … 361 362 #ifdef RT_OS_DARWIN 362 363 # ifndef __LP64__ /** @todo port to 64-bit darwin. */ 364 render_spu.fInit = false; 363 365 DisposeEventHandlerUPP(render_spu.hParentEventHandler); 364 366 ReleaseWindowGroup(render_spu.pMasterGroup); … … 402 404 *options = renderSPUOptions; 403 405 *flags = (SPU_NO_PACKER|SPU_IS_TERMINAL|SPU_MAX_SERVERS_ZERO); 404 406 405 407 return 1; 406 408 }
Note:
See TracChangeset
for help on using the changeset viewer.