Changeset 20467 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Jun 10, 2009 4:09:27 PM (16 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_getshaders.c
r20438 r20467 96 96 } 97 97 98 void PACKSPU_APIENTRY packspu_GetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj) 99 { 100 GET_THREAD(thread); 101 int writeback = 1; 102 GLsizei *pLocal; 103 104 if (!obj) return; 105 106 pLocal = (GLsizei*) crAlloc(maxCount*sizeof(GLhandleARB)+sizeof(GLsizei)); 107 if (!pLocal) return; 108 109 crPackGetAttachedObjectsARB(containerObj, maxCount, pLocal, NULL, &writeback); 110 111 packspuFlush((void *) thread); 112 while (writeback) 113 crNetRecv(); 114 115 if (count) *count=*pLocal; 116 crMemcpy(obj, &pLocal[1], *pLocal*sizeof(GLhandleARB)); 117 crFree(pLocal); 118 } 119 120 void PACKSPU_APIENTRY packspu_GetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) 121 { 122 GET_THREAD(thread); 123 int writeback = 1; 124 GLsizei *pLocal; 125 126 if (!infoLog) return; 127 128 pLocal = (GLsizei*) crAlloc(maxLength+sizeof(GLsizei)); 129 if (!pLocal) return; 130 131 crPackGetInfoLogARB(obj, maxLength, pLocal, NULL, &writeback); 132 133 packspuFlush((void *) thread); 134 while (writeback) 135 crNetRecv(); 136 137 if (length) *length=*pLocal; 138 crMemcpy(infoLog, &pLocal[1], (*pLocal)+1); 139 crFree(pLocal); 140 } 141 98 142 void PACKSPU_APIENTRY packspu_GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog) 99 143 { -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special
r20437 r20467 70 70 GetProgramInfoLog 71 71 GetShaderSource 72 GetAttachedObjectsARB 73 GetInfoLogARB
Note:
See TracChangeset
for help on using the changeset viewer.