VirtualBox

Ignore:
Timestamp:
Jun 10, 2009 4:09:27 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48444
Message:

crOpenGL: aliases for pre opengl2.0 arb extensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c

    r20437 r20467  
    7676}
    7777
     78void SERVER_DISPATCH_APIENTRY crServerDispatchGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj)
     79{
     80    GLsizei *pLocal;
     81
     82    pLocal = (GLsizei*) crAlloc(maxCount*sizeof(GLhandleARB)+sizeof(GLsizei));
     83    if (!pLocal)
     84    {
     85        GLsizei zero=0;
     86        crServerReturnValue(&zero, sizeof(zero));
     87    }
     88    cr_server.head_spu->dispatch_table.GetAttachedObjectsARB(containerObj, maxCount, pLocal, (GLhandleARB*)&pLocal[1]);
     89    crServerReturnValue(pLocal, (*pLocal)*sizeof(GLhandleARB)+sizeof(GLsizei));
     90    crFree(pLocal);
     91}
     92
     93void SERVER_DISPATCH_APIENTRY crServerDispatchGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog)
     94{
     95    GLsizei *pLocal;
     96
     97    pLocal = (GLsizei*) crAlloc(maxLength+sizeof(GLsizei));
     98    if (!pLocal)
     99    {
     100        GLsizei zero=0;
     101        crServerReturnValue(&zero, sizeof(zero));
     102    }
     103    cr_server.head_spu->dispatch_table.GetInfoLogARB(obj, maxLength, pLocal, (char*)&pLocal[1]);
     104    crServerReturnValue(pLocal, (*pLocal)+1+sizeof(GLsizei));
     105    crFree(pLocal);
     106}
     107
    78108void SERVER_DISPATCH_APIENTRY crServerDispatchGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, char *infoLog)
    79109{
Note: See TracChangeset for help on using the changeset viewer.

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