Fix #392 (at least on AMD driver 14.6beta). No regressions (at least on bull).