VirtualBox

Ignore:
Timestamp:
Jun 6, 2011 6:15:15 PM (14 years ago)
Author:
vboxsync
Message:

OpenGl-OSX: debug left over; remove compiler warnings; use GL_LINEAR for thumbnail creation

Location:
trunk/src/VBox/HostServices/SharedOpenGL/render
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r37332 r37333  
    10951095void renderspuReadBuffer(GLenum mode)
    10961096{
    1097     printf("read win id: %d\n", render_spu.window_id);
    10981097    renderspu_SystemReadBuffer(mode);
    10991098}
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r37332 r37333  
    7373/* Debug macros */
    7474#define FBO 1 /* Disable this to see how the output is without the FBO in the middle of the processing chain. */
    75 //#define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */
    76 //#define DEBUG_VERBOSE /* Define this to get some debug info about the messages flow. */
     75#if 0
     76#define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */
     77#define DEBUG_VERBOSE /* Define this to get some debug info about the messages flow. */
     78#endif
    7779
    7880#ifdef DEBUG_poetzsch
     
    12231225        /* Only reset if we aren't currently front. */
    12241226        glGetIntegerv(GL_DRAW_BUFFER, &drawId);
    1225         if (drawId != m_FBOAttFrontId)
     1227        if ((GLuint)drawId != m_FBOAttFrontId)
    12261228            m_fFrontDrawing = false;
    12271229        [self tryDraw];
     
    12541256        case GL_DRAW_FRAMEBUFFER_EXT:
    12551257        {
    1256 //            DEBUG_MSG_1(("StateInfo current Framebuffer: %d\n", *params));
    12571258            if ((GLuint)*params == m_FBOId)
    12581259                *params = 0;
     
    12621263        case GL_DRAW_BUFFER:
    12631264        {
    1264 //            DEBUG_MSG_1(("StateInfo current read/draw buffer: %d\n", *params));
    12651265            if ((GLuint)*params == m_FBOAttFrontId)
    12661266                *params = GL_FRONT;
     
    14061406            }
    14071407#endif
    1408 //            glFinish();
     1408            /*
     1409            glFinish();
     1410            */
    14091411            [m_pSharedGLCtx flushBuffer];
    14101412
     
    14171419            if (   (GLuint)oldDrawId == m_FBOAttBackId
    14181420                || (GLuint)oldDrawId == m_FBOAttFrontId)
    1419 //                glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, oldDrawFBOId);
    14201421                glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, m_FBOId);
    14211422            glDrawBuffer(oldDrawId);
     
    14731474                glBlitFramebufferEXT(x1, y1 + m_RootShift.y, x2, y2 + m_RootShift.y,
    14741475                                     x1 * m_FBOThumbScaleX, y1 * m_FBOThumbScaleY, x2 * m_FBOThumbScaleX, y2 * m_FBOThumbScaleY,
    1475                                      GL_COLOR_BUFFER_BIT, GL_NEAREST);
     1476                                     GL_COLOR_BUFFER_BIT, GL_LINEAR);
    14761477            }
    14771478            glFinish();
     
    15951596        attribs[i++] = NSOpenGLPFADepthSize;
    15961597        attribs[i++] = 24;
    1597 //        attribs[i++] = 32;
    15981598    }
    15991599    if (fVisParams & CR_STENCIL_BIT)
     
    16611661    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    16621662
    1663 //    [pCtx release];
     1663    /*
     1664    [pCtx release];
     1665    */
    16641666
    16651667    [pPool release];
     
    19161918{
    19171919    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
     1920    GLbitfield mask = GL_COLOR_BUFFER_BIT;
    19181921
    19191922    DEBUG_MSG_1(("glCopyPixels called: %d,%d-%dx%d type: %d\n", x, y, width, height, type));
    19201923
    19211924#ifdef FBO
    1922     GLbitfield mask = GL_COLOR_BUFFER_BIT;
    19231925    if (type == GL_DEPTH)
    19241926        mask = GL_DEPTH_BUFFER_BIT;
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