VirtualBox

Changeset 53595 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2014 11:34:19 PM (10 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA3d-ogl.cpp: Moved a LogFlow statement up before the RTMemFree call on the data it logs. Some nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r53348 r53595  
    8989
    9090#ifdef RT_OS_WINDOWS
    91 #define OGLGETPROCADDRESS       wglGetProcAddress
     91# define OGLGETPROCADDRESS       wglGetProcAddress
    9292#elif defined(RT_OS_DARWIN)
    93 #include <dlfcn.h>
     93# include <dlfcn.h>
    9494void *MyNSGLGetProcAddress(const char *name)
    9595{
     
    9999    return (s_image ? dlsym(s_image, name) : NULL);
    100100}
    101 # define OGLGETPROCADDRESS       MyNSGLGetProcAddress
     101# define OGLGETPROCADDRESS      MyNSGLGetProcAddress
    102102#else
    103 #define OGLGETPROCADDRESS(x)    glXGetProcAddress((const GLubyte *)x)
     103# define OGLGETPROCADDRESS(x)   glXGetProcAddress((const GLubyte *)x)
    104104#endif
    105105
     
    23432343                    VMSVGA3D_CHECK_LAST_ERROR_WARN(pState, pContext);
    23442344                }
     2345
     2346                LogFlow(("first line:\n%.*Rhxd\n", pBoxes[i].w * pSurface->cbBlock, pDoubleBuffer));
     2347
    23452348                /* Free the double buffer. */
    23462349                RTMemFree(pDoubleBuffer);
    2347 
    2348                 LogFlow(("first line:\n%.*Rhxd\n", pBoxes[i].w * pSurface->cbBlock, pDoubleBuffer));
    23492350                break;
    23502351            }
     
    28142815    AssertMsg(ret, ("SwapBuffers failed with %d\n", GetLastError()));
    28152816#elif defined(RT_OS_DARWIN)
    2816     vmsvga3dCocoaSwapBuffers(pContext->cocoaContext);
     2817    vmsvga3dCocoaSwapBuffers(pContext->cocoaView, pContext->cocoaContext);
    28172818#else
    28182819    /* show the window if not already done */
     
    30133014    }
    30143015    vmsvga3dCocoaCreateContext(&pContext->cocoaContext, shareContext);
    3015     NativeNSViewRef pHostView = (NativeNSViewRef*)pThis->svga.u64HostWindowId;
     3016    NativeNSViewRef pHostView = (NativeNSViewRef)pThis->svga.u64HostWindowId;
    30163017    vmsvga3dCocoaCreateView(&pContext->cocoaView, pHostView);
     3018
    30173019#else
    30183020    Window hostWindow = (Window)pThis->svga.u64HostWindowId;
     
    30283030        /* start our X event handling thread */
    30293031        rc = RTThreadCreate(&pState->pWindowThread, vmsvga3dXEventThread, pState, 0, RTTHREADTYPE_GUI, RTTHREADFLAGS_WAITABLE, "VMSVGA3DXEVENT");
    3030            if (RT_FAILURE(rc))
     3032        if (RT_FAILURE(rc))
    30313033        {
    30323034            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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette