VirtualBox

Changeset 29447 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
May 13, 2010 2:11:43 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: macos some debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r29446 r29447  
    2929//#define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */
    3030//#define DEBUG_VERBOSE /* Define this could get some debug info about the messages flow. */
    31 //#define DEBUG_poetzsch 1
    3231
    3332#ifdef DEBUG_poetzsch
     
    692691        glViewport(0, 0, r.size.width, r.size.height);
    693692        glOrtho(0, r.size.width, 0, r.size.height, -1, 1);
     693        DEBUG_MSG_1(("frame[%i, %i, %i, %i]\n", (int)r.origin.x, (int)r.origin.x, (int)r.size.width, (int)r.size.height));
     694        DEBUG_MSG_1(("m_Pos(%i,%i) m_Size(%i,%i)\n", (int)m_Pos.x, (int)m_Pos.y, (int)m_Size.width, (int)m_Size.height));
     695        DEBUG_MSG_1(("m_RootShift(%i, %i)\n", (int)m_RootShift.x, (int)m_RootShift.y));
    694696        glMatrixMode(GL_TEXTURE);
    695697        glLoadIdentity();
     
    783785    glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE_ARB, &oldTexId);
    784786    glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &oldFBId);
    785    
     787
    786788    /* If not previously setup generate IDs for FBO and its associated texture. */
    787789    if (!m_FBOId)
     
    847849     * others are also valid, but might incur a costly software translation. */
    848850    glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGB, m_FBOTexSize.width, m_FBOTexSize.height, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, NULL);
    849    
     851    DEBUG_MSG(("m_FBOTexSize(%i,%i)\n", (int)m_FBOTexSize.width, (int)m_FBOTexSize.height));
     852       
    850853    /* Now attach texture to the FBO as its color destination */
    851854    glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_RECTANGLE_ARB, m_FBOTexId, 0);
     
    10231026    glFlush();
    10241027//    glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
     1028    DEBUG_MSG_1(("swapFBO bound:%i, self:%i\n", tmpFB, m_FBOId));
    10251029    if (tmpFB == m_FBOId)
    10261030    {
     
    10991103    {
    11001104        NSRect r = [self frame];
     1105        DEBUG_MSG_1(("rF2V frame[%i, %i, %i, %i]\n", (int)r.origin.x, (int)r.origin.y, (int)r.size.width, (int)r.size.height));
    11011106
    11021107        if (m_FBOTexId > 0)
     
    14791484    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    14801485
     1486    DEBUG_MSG_1(("cocoaViewDisplay %p\n", pView));
    14811487    [(OverlayView*)pView swapFBO];
    14821488
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