Commit 109066bb authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Do not support DGA when DirectVideo not present.

parent 10d9909e
......@@ -126,8 +126,11 @@ DGA_Create( LPDIRECTDRAW *lplpDD ) {
TRACE("XF86DGA is version %d.%d\n",major,minor);
TSXF86DGAQueryDirectVideo(display,DefaultScreen(display),&flags);
if (!(flags & XF86DGADirectPresent))
if (!(flags & XF86DGADirectPresent)) {
/* On some boards, DGA extension is present but does not support DirectVideo */
MESSAGE("direct video is NOT PRESENT.\n");
return DDERR_GENERIC;
}
TSXF86DGAGetVideo(display,DefaultScreen(display),&addr,&width,&banksize,&memsize);
dgpriv->fb_width = width;
TSXF86DGAGetViewPortSize(display,DefaultScreen(display),&width,&height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment