summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithw <keithw>2002-03-21 18:13:46 +0000
committerkeithw <keithw>2002-03-21 18:13:46 +0000
commitf75b7ea84e87c447cdd348cf22f7156b892ece42 (patch)
treef5da461f331013786a173305db45f8e4d83228ed
parent49d3dafb025c51dd5fddb794f3770985049089b6 (diff)
fix for xv from Matt Sotek (long delayed)trunk-20020328
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c b/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c
index a81537306..5bf7976e8 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c
@@ -2014,7 +2014,7 @@ I810ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) {
pI810->directRenderingEnabled = I810DRIFinishScreenInit(pScreen);
}
#ifdef XvMCExtension
- if (pI810->directRenderingEnabled) {
+ if ((pI810->directRenderingEnabled) && (pI810->numSurfaces)) {
/* Initialize the hardware motion compensation code */
I810InitMC(pScreen);
}