Changeset 24787 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Nov 19, 2009 12:58:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r23694 r24787 57 57 void PACKSPU_APIENTRY packspu_DrawBuffer(GLenum mode) 58 58 { 59 GLboolean hadtoflush; 60 61 hadtoflush = packspuSyncOnFlushes(); 62 59 63 crStateDrawBuffer(mode); 60 64 crPackDrawBuffer(mode); 65 66 if (hadtoflush && !packspuSyncOnFlushes()) 67 packspu_Flush(); 61 68 } 62 69 … … 77 84 if (packspuSyncOnFlushes()) 78 85 { 79 packspuFlush( (void *) thread );80 81 86 if (writeback) 82 87 { … … 85 90 else 86 91 crPackWriteback(&writeback); 87 } 88 92 93 packspuFlush( (void *) thread ); 94 95 while (writeback) 96 crNetRecv(); 97 } 98 } 99 } 100 101 void PACKSPU_APIENTRY packspu_Flush( void ) 102 { 103 GET_THREAD(thread); 104 int writeback = 1; 105 106 crPackFlush(); 107 108 if (packspuSyncOnFlushes()) 109 { 110 crPackWriteback(&writeback); 111 packspuFlush( (void *) thread ); 89 112 while (writeback) 90 113 crNetRecv(); 91 }92 }93 94 void PACKSPU_APIENTRY packspu_Flush( void )95 {96 GET_THREAD(thread);97 if (pack_spu.swap)98 {99 crPackFlushSWAP();100 }101 else102 {103 crPackFlush();104 }105 106 if (packspuSyncOnFlushes())107 {108 packspuFlush( (void *) thread );109 114 } 110 115 }
Note:
See TracChangeset
for help on using the changeset viewer.