Changeset 35912 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Feb 9, 2011 12:31:28 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69938
- Location:
- trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c
r35852 r35912 1488 1488 int i; 1489 1489 1490 if (!c->array.locked) 1491 { 1492 crDebug("crStateUnlockArraysEXT ignored because arrays aren't locked"); 1493 return; 1494 } 1495 1490 1496 c->array.locked = GL_FALSE; 1491 1497 #ifdef IN_GUEST … … 1624 1630 CRClientState *from = &(fromCtx->client); 1625 1631 const CRClientState *to = &(toCtx->client); 1632 GLint curClientTextureUnit = from->curClientTextureUnit; 1626 1633 int i; 1627 1634 … … 1695 1702 from->array.t[i].buffer != to->array.t[i].buffer) { 1696 1703 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + i); 1704 curClientTextureUnit = i; 1697 1705 diff_api.TexCoordPointer(to->array.t[i].size, to->array.t[i].type, 1698 1706 to->array.t[i].stride, to->array.t[i].p); … … 1798 1806 if (from->array.t[i].enabled != to->array.t[i].enabled) { 1799 1807 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + i); 1808 curClientTextureUnit = i; 1800 1809 able[to->array.t[i].enabled](GL_TEXTURE_COORD_ARRAY); 1801 1810 from->array.t[i].enabled = to->array.t[i].enabled; … … 1825 1834 CLEARDIRTY2(cb->enableClientState, bitID); 1826 1835 } 1836 1837 if (to->curClientTextureUnit != curClientTextureUnit) 1838 { 1839 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + to->curClientTextureUnit); 1840 } 1827 1841 } 1828 1842 … … 1834 1848 const CRClientState *from = &(fromCtx->client); 1835 1849 const CRClientState *to = &(toCtx->client); 1850 GLint curClientTextureUnit = from->curClientTextureUnit; 1836 1851 int i; 1837 1852 … … 1899 1914 from->array.t[i].buffer != to->array.t[i].buffer) { 1900 1915 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + i); 1916 curClientTextureUnit = i; 1901 1917 diff_api.TexCoordPointer(to->array.t[i].size, to->array.t[i].type, 1902 1918 to->array.t[i].stride, to->array.t[i].p); … … 1998 2014 if (from->array.t[i].enabled != to->array.t[i].enabled) { 1999 2015 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + i); 2016 curClientTextureUnit = i; 2000 2017 able[to->array.t[i].enabled](GL_TEXTURE_COORD_ARRAY); 2001 2018 FILLDIRTY(cb->enableClientState); … … 2029 2046 } 2030 2047 CLEARDIRTY2(cb->enableClientState, bitID); 2048 } 2049 2050 if (to->curClientTextureUnit != curClientTextureUnit) 2051 { 2052 diff_api.ClientActiveTextureARB(GL_TEXTURE0_ARB + to->curClientTextureUnit); 2031 2053 } 2032 2054 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c
r33595 r35912 791 791 792 792 c->curClientTextureUnit = texture - GL_TEXTURE0_ARB; 793 794 DIRTY(GetCurrentBits()->client.dirty, g->neg_bitid); 793 795 } 794 796
Note:
See TracChangeset
for help on using the changeset viewer.