VirtualBox

Changeset 44947 in vbox


Ignore:
Timestamp:
Mar 7, 2013 10:05:20 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: Ubuntu 12.10 saved state working

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

Legend:

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

    r44529 r44947  
    912912    diff_api.GenRenderbuffersEXT(1, &pRBO->hwid);
    913913
    914     diff_api.BindRenderbufferEXT(GL_RENDERBUFFER_EXT, pRBO->hwid);
    915     diff_api.RenderbufferStorageEXT(GL_RENDERBUFFER_EXT, pRBO->internalformat, pRBO->width, pRBO->height);
     914    if (pRBO->width && pRBO->height)
     915    {
     916        diff_api.BindRenderbufferEXT(GL_RENDERBUFFER_EXT, pRBO->hwid);
     917        diff_api.RenderbufferStorageEXT(GL_RENDERBUFFER_EXT, pRBO->internalformat, pRBO->width, pRBO->height);
     918    }
    916919}
    917920
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texdiff.c

    r44289 r44947  
    604604    glAble able[2];
    605605    int u = 0; /* always use texture unit 0 for diff'ing */
     606    GLuint hwid = crStateGetTextureObjHWID(tobj);
     607
     608    if (!hwid)
     609        return;
    606610
    607611    able[0] = diff_api.Disable;
     
    620624#endif
    621625
    622     diff_api.BindTexture(tobj->target, crStateGetTextureObjHWID(tobj));
     626    diff_api.BindTexture(tobj->target, hwid);
    623627
    624628    if (alwaysDirty || CHECKDIRTY(tobj->paramsBit[u], bitID))
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