VirtualBox

Ignore:
Timestamp:
Aug 20, 2009 9:46:01 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix FBO support when used by several guest applications

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

Legend:

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

    r15532 r22363  
    235235        }
    236236#endif
     237#ifdef CR_EXT_framebuffer_object
     238    crStateFramebufferObjectSwitch(from, to);
     239#endif
    237240        if (CHECKDIRTY(sb->current.dirty, bitID))
    238241        {
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c

    r22155 r22363  
    515515    /*@todo*/
    516516}
     517
     518DECLEXPORT(void) STATE_APIENTRY
     519crStateFramebufferObjectSwitch(CRContext *from, CRContext *to)
     520{
     521    if (to->framebufferobject.framebuffer!=from->framebufferobject.framebuffer)
     522    {
     523        diff_api.BindFramebufferEXT(GL_FRAMEBUFFER_EXT, to->framebufferobject.framebuffer?
     524            to->framebufferobject.framebuffer->id:0);
     525    }
     526}
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