Changeset 53595 in vbox for trunk/src/VBox
- Timestamp:
- Dec 21, 2014 11:34:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r53348 r53595 89 89 90 90 #ifdef RT_OS_WINDOWS 91 # define OGLGETPROCADDRESS wglGetProcAddress91 # define OGLGETPROCADDRESS wglGetProcAddress 92 92 #elif defined(RT_OS_DARWIN) 93 # include <dlfcn.h>93 # include <dlfcn.h> 94 94 void *MyNSGLGetProcAddress(const char *name) 95 95 { … … 99 99 return (s_image ? dlsym(s_image, name) : NULL); 100 100 } 101 # define OGLGETPROCADDRESS 101 # define OGLGETPROCADDRESS MyNSGLGetProcAddress 102 102 #else 103 # define OGLGETPROCADDRESS(x)glXGetProcAddress((const GLubyte *)x)103 # define OGLGETPROCADDRESS(x) glXGetProcAddress((const GLubyte *)x) 104 104 #endif 105 105 … … 2343 2343 VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext); 2344 2344 } 2345 2346 LogFlow(("first line:\n%.*Rhxd\n", pBoxes[i].w * pSurface->cbBlock, pDoubleBuffer)); 2347 2345 2348 /* Free the double buffer. */ 2346 2349 RTMemFree(pDoubleBuffer); 2347 2348 LogFlow(("first line:\n%.*Rhxd\n", pBoxes[i].w * pSurface->cbBlock, pDoubleBuffer));2349 2350 break; 2350 2351 } … … 2814 2815 AssertMsg(ret, ("SwapBuffers failed with %d\n", GetLastError())); 2815 2816 #elif defined(RT_OS_DARWIN) 2816 vmsvga3dCocoaSwapBuffers(pContext->cocoa Context);2817 vmsvga3dCocoaSwapBuffers(pContext->cocoaView, pContext->cocoaContext); 2817 2818 #else 2818 2819 /* show the window if not already done */ … … 3013 3014 } 3014 3015 vmsvga3dCocoaCreateContext(&pContext->cocoaContext, shareContext); 3015 NativeNSViewRef pHostView = (NativeNSViewRef *)pThis->svga.u64HostWindowId;3016 NativeNSViewRef pHostView = (NativeNSViewRef)pThis->svga.u64HostWindowId; 3016 3017 vmsvga3dCocoaCreateView(&pContext->cocoaView, pHostView); 3018 3017 3019 #else 3018 3020 Window hostWindow = (Window)pThis->svga.u64HostWindowId; … … 3028 3030 /* start our X event handling thread */ 3029 3031 rc = RTThreadCreate(&pState->pWindowThread, vmsvga3dXEventThread, pState, 0, RTTHREADTYPE_GUI, RTTHREADFLAGS_WAITABLE, "VMSVGA3DXEVENT"); 3030 3032 if (RT_FAILURE(rc)) 3031 3033 { 3032 3034 AssertMsgFailed(("%s: Async IO Thread creation for 3d window handling failed rc=%d\n", __FUNCTION__, rc));
Note:
See TracChangeset
for help on using the changeset viewer.