VirtualBox

Changeset 44289 in vbox


Ignore:
Timestamp:
Jan 14, 2013 9:36:37 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83198
Message:

crOpenGL: saved state restoration fix

File:
1 edited

Legend:

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

    r37613 r44289  
    14491449
    14501450    /* restore bindings */
    1451     diff_api.ActiveTextureARB(GL_TEXTURE0_ARB + origUnit);
     1451    /* first restore unit 0 bindings the unit 0 is active currently */
    14521452    diff_api.BindTexture(GL_TEXTURE_1D, orig1D);
    14531453    diff_api.BindTexture(GL_TEXTURE_2D, orig2D);
     
    14591459    diff_api.BindTexture(GL_TEXTURE_RECTANGLE_NV, origRect);
    14601460#endif
     1461    /* now restore the proper active unit */
     1462    diff_api.ActiveTextureARB(GL_TEXTURE0_ARB + origUnit);
    14611463}
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