DGA: Fix ProcXF86DGASetViewPort for missing support in driver.
Fixes a segfault when trying to activate a DGA mode without checking whether DGA modesetting is at all possible.
This commit is contained in:
parent
d1bb5e3b47
commit
1feb69eb63
|
@ -153,6 +153,9 @@ ProcXF86DGASetViewPort(ClientPtr client)
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xXF86DGASetViewPortReq);
|
REQUEST_SIZE_MATCH(xXF86DGASetViewPortReq);
|
||||||
|
|
||||||
|
if (!DGAAvailable(stuff->screen))
|
||||||
|
return (DGAErrorBase + XF86DGANoDirectVideoMode);
|
||||||
|
|
||||||
if (!DGAActive(stuff->screen))
|
if (!DGAActive(stuff->screen))
|
||||||
{
|
{
|
||||||
int num;
|
int num;
|
||||||
|
|
Loading…
Reference in New Issue