diff options
author | Eric Anholt <[email protected]> | 2010-11-19 23:02:07 +0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-11-23 09:23:30 -0800 |
commit | 008fd3779bc7adf603b27f49f4c90b21cee814e0 (patch) | |
tree | ff2a7fc2e0c6d29be7349464ae3582d06f346605 | |
parent | e29e3c32d9d52fc206ab3ccc8674683adc880e82 (diff) |
i965: Don't upload line stipple pattern unless we're stippling.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 8dae58784c3..c5fcdde3258 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -426,6 +426,9 @@ static void upload_line_stipple(struct brw_context *brw) GLfloat tmp; GLint tmpi; + if (!ctx->Line.StippleFlag) + return; + memset(&bls, 0, sizeof(bls)); bls.header.opcode = CMD_LINE_STIPPLE_PATTERN; bls.header.length = sizeof(bls)/4 - 2; |