diff options
author | Dave Airlie <airlied@nx6125b.(none)> | 2007-06-21 14:20:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@nx6125b.(none)> | 2007-06-21 14:20:33 +1000 |
commit | d1be4ab80fc266ba6792ef1151d4bdf804cff92a (patch) | |
tree | b2d0c6d3941e687716fa7b2094eba8b89ba1aacc /src/mesa/drivers/dri/r300/r300_state.h | |
parent | 025efae411a8146a9766aa863d7baee13c2c79aa (diff) |
fix up vertex emission before state change
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.h b/src/mesa/drivers/dri/r300/r300_state.h index 21a49b7f36..365f7ecd0c 100644 --- a/src/mesa/drivers/dri/r300/r300_state.h +++ b/src/mesa/drivers/dri/r300/r300_state.h @@ -37,8 +37,15 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "r300_context.h" +#define R300_NEWPRIM( rmesa ) \ + do { \ + if ( rmesa->dma.flush ) \ + rmesa->dma.flush( rmesa ); \ + } while (0) + #define R300_STATECHANGE(r300, atom) \ do { \ + R300_NEWPRIM(r300); \ r300->hw.atom.dirty = GL_TRUE; \ r300->hw.is_dirty = GL_TRUE; \ } while(0) |