VirtualBox

Ignore:
Timestamp:
Jun 10, 2009 4:09:27 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: aliases for pre opengl2.0 arb extensions

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  
    9696}
    9797
     98void 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
     120void 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
    98142void PACKSPU_APIENTRY packspu_GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog)
    99143{
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r20437 r20467  
    7070GetProgramInfoLog
    7171GetShaderSource
     72GetAttachedObjectsARB
     73GetInfoLogARB
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette