summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r300/r300_cmdbuf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index 17ff55d1d9..62b0c4035b 100644
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -66,9 +66,10 @@ int r300FlushCmdBufLocked(r300ContextPtr r300, const char* caller)
drm_radeon_cmd_buffer_t cmd;
int start;
- if (r300->radeon.lost_context)
+ if (r300->radeon.lost_context) {
start = 0;
- else
+ r300->radeon.lost_context = GL_FALSE;
+ } else
start = r300->cmdbuf.count_reemit;
if (RADEON_DEBUG & DEBUG_IOCTL) {