Changeset 18760 in vbox
- Timestamp:
- Apr 6, 2009 2:06:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r18735 r18760 20 20 21 21 out.header.type = CR_MESSAGE_OOB; 22 22 23 23 if (render_spu.is_swap_master) 24 24 { 25 25 int a; 26 26 27 27 for (a = 0; a < render_spu.num_swap_clients; a++) 28 28 { 29 crNetGetMessage( render_spu.swap_conns[a], &in ); 29 crNetGetMessage( render_spu.swap_conns[a], &in ); 30 30 crNetFree( render_spu.swap_conns[a], in); 31 31 } … … 38 38 crNetSend( render_spu.swap_conns[0], NULL, &out, sizeof(CRMessage)); 39 39 40 crNetGetMessage( render_spu.swap_conns[0], &in ); 40 crNetGetMessage( render_spu.swap_conns[0], &in ); 41 41 crNetFree( render_spu.swap_conns[0], in); 42 42 } … … 674 674 675 675 #if 0 676 switch (target) 676 switch (target) 677 677 { 678 678 default: … … 713 713 if (render_spu.gather_userbuf_size) 714 714 privbuf = (unsigned char *)crAlloc(1024*768*4); 715 715 716 716 port = ((GLint *) values)[0]; 717 717 … … 728 728 { 729 729 case CR_TCPIP: 730 crDebug("Render SPU: AcceptClient from %s on %d", 730 crDebug("Render SPU: AcceptClient from %s on %d", 731 731 render_spu.server->clients[client_num]->conn->hostname, render_spu.gather_port); 732 render_spu.gather_conns[client_num] = 732 render_spu.gather_conns[client_num] = 733 733 crNetAcceptClient("tcpip", NULL, port, 1024*1024, 1); 734 734 break; 735 735 736 736 case CR_GM: 737 render_spu.gather_conns[client_num] = 737 render_spu.gather_conns[client_num] = 738 738 crNetAcceptClient("gm", NULL, port, 1024*1024, 1); 739 739 break; 740 740 741 741 default: 742 742 crError("Render SPU: Unknown Network Type to Open Gather Connection"); 743 743 } 744 744 745 745 746 746 if (render_spu.gather_userbuf_size) 747 747 { … … 768 768 for (client_num=0; client_num< render_spu.server->numClients; client_num++) 769 769 { 770 crNetGetMessage(render_spu.gather_conns[client_num], &msg); 770 crNetGetMessage(render_spu.gather_conns[client_num], &msg); 771 771 if (msg->header.type == CR_MESSAGE_GATHER) 772 772 { … … 780 780 } 781 781 782 /* 783 * We're only hitting the case if we're not actually calling 782 /* 783 * We're only hitting the case if we're not actually calling 784 784 * child.SwapBuffers from readback, so a switch about which 785 785 * call to DoSync() we really want [this one, or the one 786 786 * in SwapBuffers above] is not necessary -- karl 787 787 */ 788 788 789 789 if (render_spu.swap_master_url) 790 790 DoSync(); … … 795 795 796 796 render_spu.self.RasterPos2i(((GLint *)values)[0], ((GLint *)values)[1]); 797 render_spu.self.DrawPixels( ((GLint *)values)[2], ((GLint *)values)[3], 798 ((GLint *)values)[4], ((GLint *)values)[5], 797 render_spu.self.DrawPixels( ((GLint *)values)[2], ((GLint *)values)[3], 798 ((GLint *)values)[4], ((GLint *)values)[5], 799 799 render_spu.gather_conns[0]->userbuf); 800 800 … … 1004 1004 void renderspuFlush() 1005 1005 { 1006 render_spu.self.Flush();1006 glFlush(); 1007 1007 } 1008 1008 1009 1009 void renderspuFinish() 1010 1010 { 1011 render_spu.self.Finish();1011 glFinish(); 1012 1012 } 1013 1013 #endif
Note:
See TracChangeset
for help on using the changeset viewer.