Changeset 35912 in vbox
- Timestamp:
- Feb 9, 2011 12:31:28 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
-
Additions/common/crOpenGL/pack/packspu_client.c (modified) (1 diff)
-
GuestHost/OpenGL/state_tracker/state_client.c (modified) (9 diffs)
-
GuestHost/OpenGL/state_tracker/state_texture.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c
r35195 r35912 597 597 void PACKSPU_APIENTRY packspu_UnlockArraysEXT() 598 598 { 599 GET_CONTEXT(ctx); 600 CRClientState *clientState = &(ctx->clientState->client); 601 602 if (clientState->array.locked && clientState->array.synced) 603 { 604 crPackUnlockArraysEXT(); 605 } 606 599 607 crStateUnlockArraysEXT(); 600 crPackUnlockArraysEXT(); 601 } 608 } -
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.

