diff options
author | Nicolai Haehnle <prefect_@gmx.net> | 2005-05-14 09:17:28 +0000 |
---|---|---|
committer | Nicolai Haehnle <prefect_@gmx.net> | 2005-05-14 09:17:28 +0000 |
commit | 686e9b9f571cc9b6f2acd09be309af26f43890a3 (patch) | |
tree | f9b13e91082d36cfe795fd454f30d5948c6e1e81 /src/mesa/drivers/dri/r300/r300_context.c | |
parent | aecc05627afc471cf75e55d444254d34bbf06ccd (diff) |
Don't print debug messages unless the user explicitly requested them
using the RADEON_DEBUG environment variable.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c index bcfbe2b6c8..fd8aaa1cea 100644 --- a/src/mesa/drivers/dri/r300/r300_context.c +++ b/src/mesa/drivers/dri/r300/r300_context.c @@ -373,8 +373,10 @@ void r300DestroyContext(__DRIcontextPrivate * driContextPriv) r300ContextPtr r300 = (r300ContextPtr) driContextPriv->driverPrivate; radeonContextPtr current = ctx ? RADEON_CONTEXT(ctx) : NULL; - fprintf(stderr, "Destroying context !\n"); - sleep(1); + if (RADEON_DEBUG & DEBUG_DRI) { + fprintf(stderr, "Destroying context !\n"); + } + /* check if we're deleting the currently bound context */ if (&r300->radeon == current) { radeonFlush(r300->radeon.glCtx); |