VirtualBox

Ignore:
Timestamp:
Jan 9, 2014 4:13:28 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91522
Message:

crOpenGL: crOpenGL: 1. workaround point sprite driver bugs; 2. workaround multi-string shader source driver bug; 3. proper GLhandle for OSX; 4. extended dumping; 5. misc fixes

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_get.py

    r44994 r50041  
    4949
    5050from get_sizes import *
    51 from get_components import *
    5251
    5352easy_swaps = {
     
    206205            print '\tif (pack_spu.swap)'
    207206            print '\t{'
    208             print '\t\tfor (i = 0 ; i < lookupComponents(pname) ; i++)'
     207            print '\t\tfor (i = 0 ; i < crStateHlpComponentsCount(pname) ; i++)'
    209208            print '\t\t{'
    210209            if hard_funcs[func_name] == 'SWAPDOUBLE':
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getshaders.c

    r44529 r50041  
    9999}
    100100
    101 void PACKSPU_APIENTRY packspu_GetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj)
     101void PACKSPU_APIENTRY packspu_GetAttachedObjectsARB(VBoxGLhandleARB containerObj, GLsizei maxCount, GLsizei * count, VBoxGLhandleARB * obj)
    102102{
    103103    GET_THREAD(thread);
     
    107107    if (!obj) return;
    108108
    109     pLocal = (GLsizei*) crAlloc(maxCount*sizeof(GLhandleARB)+sizeof(GLsizei));
     109    pLocal = (GLsizei*) crAlloc(maxCount*sizeof(VBoxGLhandleARB)+sizeof(GLsizei));
    110110    if (!pLocal) return;
    111111
     
    116116
    117117    if (count) *count=*pLocal;
    118     crMemcpy(obj, &pLocal[1], *pLocal*sizeof(GLhandleARB));
     118    crMemcpy(obj, &pLocal[1], *pLocal*sizeof(VBoxGLhandleARB));
    119119    crFree(pLocal);
    120120}
     
    122122AssertCompile(sizeof(GLsizei) == 4);
    123123
    124 void PACKSPU_APIENTRY packspu_GetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog)
     124void PACKSPU_APIENTRY packspu_GetInfoLogARB(VBoxGLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog)
    125125{
    126126    GET_THREAD(thread);
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c

    r49264 r50041  
    130130}
    131131
    132 void PACK_APIENTRY packspu_DeleteObjectARB(GLhandleARB obj)
     132void PACK_APIENTRY packspu_DeleteObjectARB(VBoxGLhandleARB obj)
    133133{
    134134    GLuint hwid = crStateGetProgramHWID(obj);
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