Changeset 29447 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- May 13, 2010 2:11:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r29446 r29447 29 29 //#define SHOW_WINDOW_BACKGROUND 1 /* Define this to see the window background even if the window is clipped */ 30 30 //#define DEBUG_VERBOSE /* Define this could get some debug info about the messages flow. */ 31 //#define DEBUG_poetzsch 132 31 33 32 #ifdef DEBUG_poetzsch … … 692 691 glViewport(0, 0, r.size.width, r.size.height); 693 692 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)); 694 696 glMatrixMode(GL_TEXTURE); 695 697 glLoadIdentity(); … … 783 785 glGetIntegerv(GL_TEXTURE_BINDING_RECTANGLE_ARB, &oldTexId); 784 786 glGetIntegerv(GL_FRAMEBUFFER_BINDING_EXT, &oldFBId); 785 787 786 788 /* If not previously setup generate IDs for FBO and its associated texture. */ 787 789 if (!m_FBOId) … … 847 849 * others are also valid, but might incur a costly software translation. */ 848 850 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 850 853 /* Now attach texture to the FBO as its color destination */ 851 854 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_RECTANGLE_ARB, m_FBOTexId, 0); … … 1023 1026 glFlush(); 1024 1027 // glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); 1028 DEBUG_MSG_1(("swapFBO bound:%i, self:%i\n", tmpFB, m_FBOId)); 1025 1029 if (tmpFB == m_FBOId) 1026 1030 { … … 1099 1103 { 1100 1104 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)); 1101 1106 1102 1107 if (m_FBOTexId > 0) … … 1479 1484 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 1480 1485 1486 DEBUG_MSG_1(("cocoaViewDisplay %p\n", pView)); 1481 1487 [(OverlayView*)pView swapFBO]; 1482 1488
Note:
See TracChangeset
for help on using the changeset viewer.