VirtualBox

Ignore:
Timestamp:
Mar 5, 2010 2:13:31 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: add GL_ARB_pixel_buffer_object support

File:
1 edited

Legend:

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

    r27034 r27091  
    11861186    rc = SSMR3PutU32(pSSM, pContext->bufferobject.elementsBuffer->name);
    11871187    AssertRCReturn(rc, rc);
     1188#ifdef CR_ARB_pixel_buffer_object
     1189    rc = SSMR3PutU32(pSSM, pContext->bufferobject.packBuffer->name);
     1190    AssertRCReturn(rc, rc);
     1191    rc = SSMR3PutU32(pSSM, pContext->bufferobject.unpackBuffer->name);
     1192    AssertRCReturn(rc, rc);
     1193#endif
    11881194    /* Save clint pointers and buffer bindings*/
    11891195    for (i=0; i<CRSTATECLIENT_MAX_VERTEXARRAYS; ++i)
     
    16711677    AssertRCReturn(rc, rc);
    16721678    pContext->bufferobject.elementsBuffer = CRS_GET_BO(ui);
     1679#ifdef CR_ARB_pixel_buffer_object
     1680    rc = SSMR3GetU32(pSSM, &ui);
     1681    AssertRCReturn(rc, rc);
     1682    pContext->bufferobject.packBuffer = CRS_GET_BO(ui);
     1683    rc = SSMR3GetU32(pSSM, &ui);
     1684    AssertRCReturn(rc, rc);
     1685    pContext->bufferobject.unpackBuffer = CRS_GET_BO(ui);
     1686#endif
    16731687#undef CRS_GET_BO
    16741688
     
    19521966        FILLDIRTY(pBits->bufferobject.arrayBinding);
    19531967        FILLDIRTY(pBits->bufferobject.elementsBinding);
     1968# ifdef CR_ARB_pixel_buffer_object
     1969        FILLDIRTY(pBits->bufferobject.packBinding);
     1970        FILLDIRTY(pBits->bufferobject.unpackBinding);
     1971# endif
    19541972#endif
    19551973
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