Changeset 31486 in vbox
- Timestamp:
- Aug 9, 2010 2:00:01 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64570
- 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
r29930 r31486 1851 1851 FILLDIRTY(cb->v); 1852 1852 FILLDIRTY(cb->clientPointer); 1853 FILLDIRTY(cb->dirty); 1853 1854 } 1854 1855 CLEARDIRTY2(cb->v, bitID); … … 1863 1864 FILLDIRTY(cb->n); 1864 1865 FILLDIRTY(cb->clientPointer); 1866 FILLDIRTY(cb->dirty); 1865 1867 } 1866 1868 CLEARDIRTY2(cb->n, bitID); … … 1876 1878 FILLDIRTY(cb->c); 1877 1879 FILLDIRTY(cb->clientPointer); 1880 FILLDIRTY(cb->dirty); 1878 1881 } 1879 1882 CLEARDIRTY2(cb->c, bitID); … … 1887 1890 to->array.i.stride, to->array.i.p); 1888 1891 FILLDIRTY(cb->i); 1892 FILLDIRTY(cb->dirty); 1889 1893 FILLDIRTY(cb->clientPointer); 1890 1894 } … … 1903 1907 FILLDIRTY(cb->t[i]); 1904 1908 FILLDIRTY(cb->clientPointer); 1909 FILLDIRTY(cb->dirty); 1905 1910 } 1906 1911 CLEARDIRTY2(cb->t[i], bitID); … … 1914 1919 FILLDIRTY(cb->e); 1915 1920 FILLDIRTY(cb->clientPointer); 1921 FILLDIRTY(cb->dirty); 1916 1922 } 1917 1923 CLEARDIRTY2(cb->e, bitID); … … 1927 1933 FILLDIRTY(cb->s); 1928 1934 FILLDIRTY(cb->clientPointer); 1935 FILLDIRTY(cb->dirty); 1929 1936 } 1930 1937 CLEARDIRTY2(cb->s, bitID); … … 1939 1946 FILLDIRTY(cb->f); 1940 1947 FILLDIRTY(cb->clientPointer); 1948 FILLDIRTY(cb->dirty); 1941 1949 } 1942 1950 CLEARDIRTY2(cb->f, bitID); … … 1958 1966 FILLDIRTY(cb->a[i]); 1959 1967 FILLDIRTY(cb->clientPointer); 1968 FILLDIRTY(cb->dirty); 1960 1969 } 1961 1970 CLEARDIRTY2(cb->a[i], bitID); … … 1973 1982 able[to->array.v.enabled](GL_VERTEX_ARRAY); 1974 1983 FILLDIRTY(cb->enableClientState); 1984 FILLDIRTY(cb->dirty); 1975 1985 } 1976 1986 if (from->array.n.enabled != to->array.n.enabled) { 1977 1987 able[to->array.n.enabled](GL_NORMAL_ARRAY); 1978 1988 FILLDIRTY(cb->enableClientState); 1989 FILLDIRTY(cb->dirty); 1979 1990 } 1980 1991 if (from->array.c.enabled != to->array.c.enabled) { 1981 1992 able[to->array.c.enabled](GL_COLOR_ARRAY); 1982 1993 FILLDIRTY(cb->enableClientState); 1994 FILLDIRTY(cb->dirty); 1983 1995 } 1984 1996 if (from->array.i.enabled != to->array.i.enabled) { 1985 1997 able[to->array.i.enabled](GL_INDEX_ARRAY); 1986 1998 FILLDIRTY(cb->enableClientState); 1999 FILLDIRTY(cb->dirty); 1987 2000 } 1988 2001 for (i = 0; (unsigned int)i < toCtx->limits.maxTextureUnits; i++) { … … 1991 2004 able[to->array.t[i].enabled](GL_TEXTURE_COORD_ARRAY); 1992 2005 FILLDIRTY(cb->enableClientState); 2006 FILLDIRTY(cb->dirty); 1993 2007 } 1994 2008 } … … 1996 2010 able[to->array.e.enabled](GL_EDGE_FLAG_ARRAY); 1997 2011 FILLDIRTY(cb->enableClientState); 2012 FILLDIRTY(cb->dirty); 1998 2013 } 1999 2014 if (from->array.s.enabled != to->array.s.enabled) { 2000 2015 able[to->array.s.enabled](GL_SECONDARY_COLOR_ARRAY_EXT); 2001 2016 FILLDIRTY(cb->enableClientState); 2017 FILLDIRTY(cb->dirty); 2002 2018 } 2003 2019 if (from->array.f.enabled != to->array.f.enabled) { 2004 2020 able[to->array.f.enabled](GL_FOG_COORDINATE_ARRAY_EXT); 2005 2021 FILLDIRTY(cb->enableClientState); 2022 FILLDIRTY(cb->dirty); 2006 2023 } 2007 2024 for (i = 0; (unsigned int)i < toCtx->limits.maxVertexProgramAttribs; i++) { … … 2012 2029 diff_api.DisableVertexAttribArrayARB(i); 2013 2030 FILLDIRTY(cb->enableClientState); 2031 FILLDIRTY(cb->dirty); 2014 2032 } 2015 2033 } 2016 2034 CLEARDIRTY2(cb->enableClientState, bitID); 2017 2035 } 2036 2037 CLEARDIRTY2(cb->dirty, bitID); 2018 2038 } 2019 2039 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_error.c
r27995 r31486 21 21 g->error = error; 22 22 23 if ( crGetenv("CR_DEBUG"))23 if (1||crGetenv("CR_DEBUG")) 24 24 { 25 25 char *glerr;
Note:
See TracChangeset
for help on using the changeset viewer.