diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-05-26 11:13:44 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-05-26 11:13:44 -0400 |
commit | 17417fc8eeaf5f88452fa3d37a763cee3c92a28c (patch) | |
tree | 190b00c5bd7dec72c24c71a8bebfaa7430d5db2f /src/mesa/drivers/dri/radeon | |
parent | 4a28974cf59e12f1296526802a4ed3e7160671e4 (diff) |
fix segfault when running glxinfo
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c index 409825182e..1e900865f0 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c @@ -233,7 +233,7 @@ void radeonDestroyContext(__DRIcontextPrivate *driContextPriv ) #if RADEON_COMMON && defined(RADEON_COMMON_FOR_R600) /* +r6/r7 */ if (IS_R600_CLASS(screen)) { - r600DestroyContext(driContextPriv); + r600DestroyContext(driContextPriv); } #endif @@ -267,6 +267,9 @@ void radeonDestroyContext(__DRIcontextPrivate *driContextPriv ) rcommonDestroyCmdBuf(radeon); +#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R600) /* +r6/r7 */ + if (!IS_R600_CLASS(screen)) +#endif radeon_destroy_atom_list(radeon); if (radeon->state.scissor.pClipRects) { |