Changeset 49172 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c
- Timestamp:
- Oct 17, 2013 7:34:35 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90045
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c
r48897 r49172 130 130 131 131 case GL_GATHER_CONNECT_CR: 132 /* 132 /* 133 133 * We want the last connect to go through, 134 134 * otherwise we might deadlock in CheckWindowSize() … … 136 136 */ 137 137 gather_connect_count++; 138 if (cr_server.only_swap_once && (gather_connect_count != cr_server.numClients)) 138 if (cr_server.only_swap_once && (gather_connect_count != cr_server.numClients)) 139 139 { 140 140 break; … … 156 156 const int eye = v[1] == 0.0 ? 0 : 1; 157 157 crMatrixInitFromFloats(&cr_server.viewMatrix[eye], v + 2); 158 159 crDebug("Got GL_SERVER_VIEW_MATRIX_CR:\n" 158 159 crDebug("Got GL_SERVER_VIEW_MATRIX_CR:\n" 160 160 " %f %f %f %f\n" 161 161 " %f %f %f %f\n" … … 194 194 const int eye = v[1] == 0.0 ? 0 : 1; 195 195 crMatrixInitFromFloats(&cr_server.projectionMatrix[eye], v + 2); 196 197 crDebug("Got GL_SERVER_PROJECTION_MATRIX_CR:\n" 196 197 crDebug("Got GL_SERVER_PROJECTION_MATRIX_CR:\n" 198 198 " %f %f %f %f\n" 199 199 " %f %f %f %f\n" … … 230 230 float bottom = znear * (b - 1.0f) / y; 231 231 float top = 2.0f * znear / y + bottom; 232 crDebug("Frustum: left, right, bottom, top, near, far: %f, %f, %f, %f, %f, %f", left, right, bottom, top, znear, zfar); 232 crDebug("Frustum: left, right, bottom, top, near, far: %f, %f, %f, %f, %f, %f", left, right, bottom, top, znear, zfar); 233 233 } 234 234 else { … … 323 323 324 324 325 void SERVER_DISPATCH_APIENTRY 325 void SERVER_DISPATCH_APIENTRY 326 326 crServerDispatchCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) 327 327 { … … 424 424 gl->GenFramebuffersEXT(1, &fboID); 425 425 gl->BindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboID); 426 gl->FramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, target, 426 gl->FramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, target, 427 427 ctx->texture.unit[ctx->texture.curTextureUnit].currentTexture2D->hwid, level); 428 428 status = gl->CheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); … … 492 492 gl->GetTexImage(target, level, GL_BGRA, GL_UNSIGNED_BYTE, img1); 493 493 494 494 495 495 for (dRow=yoffset, sRow=y-height-1; dRow<yoffset-height; dRow++, sRow--) 496 496 { … … 879 879 } 880 880 881 void SERVER_DISPATCH_APIENTRY 881 void SERVER_DISPATCH_APIENTRY 882 882 crServerDispatchBlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, 883 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, 883 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, 884 884 GLbitfield mask, GLenum filter) 885 885 { … … 1628 1628 } 1629 1629 1630 bool crServerDumpFilterOp(unsigned long event, CR_DUMPER *pDumper) 1630 void crServerDumpFilterOpLeave(unsigned long event, CR_DUMPER *pDumper) 1631 { 1632 } 1633 1634 bool crServerDumpFilterOpEnter(unsigned long event, CR_DUMPER *pDumper) 1631 1635 { 1632 1636 return CR_SERVER_DUMP_DEFAULT_FILTER_OP(event);
Note:
See TracChangeset
for help on using the changeset viewer.