Changeset 46174 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 20, 2013 12:17:39 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL/pack
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special
r45008 r46174 126 126 DeleteBuffersARB 127 127 StringMarkerGREMEDY 128 GenTextures -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_texture.c
r44529 r46174 40 40 } 41 41 42 void PACKSPU_APIENTRY packspu_GenTextures( GLsizei n, GLuint * textures ) 43 { 44 GET_THREAD(thread); 45 int writeback = 1; 46 unsigned int i; 47 if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network)) 48 { 49 crError( "packspu_GenTextures doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" ); 50 } 51 if (pack_spu.swap) 52 { 53 crPackGenTexturesSWAP( n, textures, &writeback ); 54 } 55 else 56 { 57 crPackGenTextures( n, textures, &writeback ); 58 } 59 packspuFlush( (void *) thread ); 60 CRPACKSPU_WRITEBACK_WAIT(thread, writeback); 61 if (pack_spu.swap) 62 { 63 for (i = 0 ; i < (unsigned int) n ; i++) 64 { 65 textures[i] = SWAP32(textures[i]); 66 } 67 } 68 69 crStateRegTextures(n, textures); 70 }
Note:
See TracChangeset
for help on using the changeset viewer.