lost_context never gets reset.
authorAapo Tahkola <aet@rasterburn.org>
Thu, 16 Jun 2005 10:05:18 +0000 (10:05 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Thu, 16 Jun 2005 10:05:18 +0000 (10:05 +0000)
src/mesa/drivers/dri/r300/r300_cmdbuf.c

index 17ff55d1d9f4cdb6694876753f32db5b1a5ca5ed..62b0c4035bae168ad28f2f04eeb0a50834732ce4 100644 (file)
@@ -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) {