Changeset 37333 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Jun 6, 2011 6:15:15 PM (14 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r37332 r37333 1095 1095 void renderspuReadBuffer(GLenum mode) 1096 1096 { 1097 printf("read win id: %d\n", render_spu.window_id);1098 1097 renderspu_SystemReadBuffer(mode); 1099 1098 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r37332 r37333 73 73 /* Debug macros */ 74 74 #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 77 79 78 80 #ifdef DEBUG_poetzsch … … 1223 1225 /* Only reset if we aren't currently front. */ 1224 1226 glGetIntegerv(GL_DRAW_BUFFER, &drawId); 1225 if ( drawId != m_FBOAttFrontId)1227 if ((GLuint)drawId != m_FBOAttFrontId) 1226 1228 m_fFrontDrawing = false; 1227 1229 [self tryDraw]; … … 1254 1256 case GL_DRAW_FRAMEBUFFER_EXT: 1255 1257 { 1256 // DEBUG_MSG_1(("StateInfo current Framebuffer: %d\n", *params));1257 1258 if ((GLuint)*params == m_FBOId) 1258 1259 *params = 0; … … 1262 1263 case GL_DRAW_BUFFER: 1263 1264 { 1264 // DEBUG_MSG_1(("StateInfo current read/draw buffer: %d\n", *params));1265 1265 if ((GLuint)*params == m_FBOAttFrontId) 1266 1266 *params = GL_FRONT; … … 1406 1406 } 1407 1407 #endif 1408 // glFinish(); 1408 /* 1409 glFinish(); 1410 */ 1409 1411 [m_pSharedGLCtx flushBuffer]; 1410 1412 … … 1417 1419 if ( (GLuint)oldDrawId == m_FBOAttBackId 1418 1420 || (GLuint)oldDrawId == m_FBOAttFrontId) 1419 // glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, oldDrawFBOId);1420 1421 glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, m_FBOId); 1421 1422 glDrawBuffer(oldDrawId); … … 1473 1474 glBlitFramebufferEXT(x1, y1 + m_RootShift.y, x2, y2 + m_RootShift.y, 1474 1475 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); 1476 1477 } 1477 1478 glFinish(); … … 1595 1596 attribs[i++] = NSOpenGLPFADepthSize; 1596 1597 attribs[i++] = 24; 1597 // attribs[i++] = 32;1598 1598 } 1599 1599 if (fVisParams & CR_STENCIL_BIT) … … 1661 1661 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 1662 1662 1663 // [pCtx release]; 1663 /* 1664 [pCtx release]; 1665 */ 1664 1666 1665 1667 [pPool release]; … … 1916 1918 { 1917 1919 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 1920 GLbitfield mask = GL_COLOR_BUFFER_BIT; 1918 1921 1919 1922 DEBUG_MSG_1(("glCopyPixels called: %d,%d-%dx%d type: %d\n", x, y, width, height, type)); 1920 1923 1921 1924 #ifdef FBO 1922 GLbitfield mask = GL_COLOR_BUFFER_BIT;1923 1925 if (type == GL_DEPTH) 1924 1926 mask = GL_DEPTH_BUFFER_BIT;
Note:
See TracChangeset
for help on using the changeset viewer.