VirtualBox

Changeset 31486 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Aug 9, 2010 2:00:01 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64570
Message:

crOpenGL: partial merge of state_client.c patch submitted to vboxdev

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  
    18511851                FILLDIRTY(cb->v);
    18521852                FILLDIRTY(cb->clientPointer);
     1853                FILLDIRTY(cb->dirty);
    18531854            }
    18541855            CLEARDIRTY2(cb->v, bitID);
     
    18631864                FILLDIRTY(cb->n);
    18641865                FILLDIRTY(cb->clientPointer);
     1866                FILLDIRTY(cb->dirty);
    18651867            }
    18661868            CLEARDIRTY2(cb->n, bitID);
     
    18761878                FILLDIRTY(cb->c);
    18771879                FILLDIRTY(cb->clientPointer);
     1880                FILLDIRTY(cb->dirty);
    18781881            }
    18791882            CLEARDIRTY2(cb->c, bitID);
     
    18871890                                                            to->array.i.stride, to->array.i.p);
    18881891                FILLDIRTY(cb->i);
     1892                FILLDIRTY(cb->dirty);
    18891893                FILLDIRTY(cb->clientPointer);
    18901894            }
     
    19031907                    FILLDIRTY(cb->t[i]);
    19041908                    FILLDIRTY(cb->clientPointer);
     1909                    FILLDIRTY(cb->dirty);
    19051910                }
    19061911                CLEARDIRTY2(cb->t[i], bitID);
     
    19141919                FILLDIRTY(cb->e);
    19151920                FILLDIRTY(cb->clientPointer);
     1921                FILLDIRTY(cb->dirty);
    19161922            }
    19171923            CLEARDIRTY2(cb->e, bitID);
     
    19271933                FILLDIRTY(cb->s);
    19281934                FILLDIRTY(cb->clientPointer);
     1935                FILLDIRTY(cb->dirty);
    19291936            }
    19301937            CLEARDIRTY2(cb->s, bitID);
     
    19391946                FILLDIRTY(cb->f);
    19401947                FILLDIRTY(cb->clientPointer);
     1948                FILLDIRTY(cb->dirty);
    19411949            }
    19421950            CLEARDIRTY2(cb->f, bitID);
     
    19581966                    FILLDIRTY(cb->a[i]);
    19591967                    FILLDIRTY(cb->clientPointer);
     1968                    FILLDIRTY(cb->dirty);
    19601969                }
    19611970                CLEARDIRTY2(cb->a[i], bitID);
     
    19731982            able[to->array.v.enabled](GL_VERTEX_ARRAY);
    19741983            FILLDIRTY(cb->enableClientState);
     1984            FILLDIRTY(cb->dirty);
    19751985        }
    19761986        if (from->array.n.enabled != to->array.n.enabled) {
    19771987            able[to->array.n.enabled](GL_NORMAL_ARRAY);
    19781988            FILLDIRTY(cb->enableClientState);
     1989            FILLDIRTY(cb->dirty);
    19791990        }
    19801991        if (from->array.c.enabled != to->array.c.enabled) {
    19811992            able[to->array.c.enabled](GL_COLOR_ARRAY);
    19821993            FILLDIRTY(cb->enableClientState);
     1994            FILLDIRTY(cb->dirty);
    19831995        }
    19841996        if (from->array.i.enabled != to->array.i.enabled) {
    19851997            able[to->array.i.enabled](GL_INDEX_ARRAY);
    19861998            FILLDIRTY(cb->enableClientState);
     1999            FILLDIRTY(cb->dirty);
    19872000        }
    19882001        for (i = 0; (unsigned int)i < toCtx->limits.maxTextureUnits; i++) {
     
    19912004                able[to->array.t[i].enabled](GL_TEXTURE_COORD_ARRAY);
    19922005                FILLDIRTY(cb->enableClientState);
     2006                FILLDIRTY(cb->dirty);
    19932007            }
    19942008        }
     
    19962010            able[to->array.e.enabled](GL_EDGE_FLAG_ARRAY);
    19972011            FILLDIRTY(cb->enableClientState);
     2012            FILLDIRTY(cb->dirty);
    19982013        }
    19992014        if (from->array.s.enabled != to->array.s.enabled) {
    20002015            able[to->array.s.enabled](GL_SECONDARY_COLOR_ARRAY_EXT);
    20012016            FILLDIRTY(cb->enableClientState);
     2017            FILLDIRTY(cb->dirty);
    20022018        }
    20032019        if (from->array.f.enabled != to->array.f.enabled) {
    20042020            able[to->array.f.enabled](GL_FOG_COORDINATE_ARRAY_EXT);
    20052021            FILLDIRTY(cb->enableClientState);
     2022            FILLDIRTY(cb->dirty);
    20062023        }
    20072024        for (i = 0; (unsigned int)i < toCtx->limits.maxVertexProgramAttribs; i++) {
     
    20122029                    diff_api.DisableVertexAttribArrayARB(i);
    20132030                FILLDIRTY(cb->enableClientState);
     2031                FILLDIRTY(cb->dirty);
    20142032            }
    20152033        }
    20162034        CLEARDIRTY2(cb->enableClientState, bitID);
    20172035    }
     2036
     2037    CLEARDIRTY2(cb->dirty, bitID);
    20182038}
    20192039
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_error.c

    r27995 r31486  
    2121        g->error = error;
    2222
    23         if (crGetenv("CR_DEBUG"))
     23        if (1||crGetenv("CR_DEBUG"))
    2424        {
    2525                char *glerr;
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