VirtualBox

Changeset 22832 in vbox


Ignore:
Timestamp:
Sep 8, 2009 11:29:55 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: only check for diff_api on host side

Location:
trunk/src/VBox/GuestHost/OpenGL/state_tracker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c

    r22831 r22832  
    5656    if (pObj->data) crFree(pObj->data);
    5757
    58     if (diff_api.AlphaFunc)
     58#ifndef IN_GUEST
     59    if (diff_api.DeleteBuffersARB)
    5960    {
    6061        diff_api.DeleteBuffersARB(1, &pObj->name);
    6162    }
     63#endif
    6264
    6365    crFree(pObj);
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c

    r22831 r22832  
    4848    CRFramebufferObject *pObj = (CRFramebufferObject *)data;
    4949
    50     if (diff_api.AlphaFunc)
     50#ifndef IN_GUEST
     51    if (diff_api.DeleteFramebuffersEXT)
    5152    {
    5253        diff_api.DeleteFramebuffersEXT(1, &pObj->id);
    5354    }
     55#endif
    5456
    5557    crFree(pObj);
     
    6062    CRRenderbufferObject *pObj = (CRRenderbufferObject *)data;
    6163
    62     if (diff_api.AlphaFunc)
     64#ifndef IN_GUEST
     65    if (diff_api.DeleteRenderbuffersEXT)
    6366    {
    6467        diff_api.DeleteRenderbuffersEXT(1, &pObj->id);
    6568    }
     69#endif
    6670
    6771    crFree(pObj);
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