present: Clear target_crtc if driver lacks Present support
authorKeith Packard <keithp@keithp.com>
Tue, 26 Nov 2013 20:06:57 +0000 (12:06 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 5 Dec 2013 17:51:00 +0000 (09:51 -0800)
commit4aa77378de69efdc10bced6ba650b0ebff50c112
treea4760d3c2ea8bd368f2eca57142a3136e6249c78
parent3dd5bfe540b295bb37a2c2fd0ba4a31fb217612b
present: Clear target_crtc if driver lacks Present support

If the driver doesn't have the necessary hooks for Present, then the
target_crtc needs to be set to NULL to make sure the extension uses
the present_fake code.

Signed-off-by: Keith Packard <keithp@keithp.com>
Tested-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
present/present.c