diff options
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r-- | src/radeon_accel.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c index b4c44ed..6bebd6c 100644 --- a/src/radeon_accel.c +++ b/src/radeon_accel.c @@ -322,8 +322,14 @@ void RADEONEngineRestore(ScrnInfoPtr pScrn) /* In the DRI case, it's initialized when the server grabs the lock. We * don't hold the lock here, so don't do it in that case. */ - if (!info->directRenderingEnabled && info->RenderAccel) - RADEONInit3DEngineForRender(pScrn); +#ifdef XF86DRI + if (!info->directRenderingEnabled) { +#endif + if (info->RenderAccel) + RADEONInit3DEngineForRender(pScrn); +#ifdef XF86DRI + } +#endif #endif RADEONWaitForIdleMMIO(pScrn); |