Workaround for buggy AMD Catalyst drivers (tested with 13.2).

Signed-off-by: Yuzhe Wu <yuzhe.wuh@gmail.com>