From 3176f8e2e1195b0f8bd0c9ba2fd44366ff1da520 Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Thu, 16 Jun 2005 10:05:18 +0000 Subject: [PATCH] lost_context never gets reset. --- src/mesa/drivers/dri/r300/r300_cmdbuf.c | 5 +++-- 1 file 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 17ff55d1d9f..62b0c4035ba 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) { -- 2.30.2