display: implement ANCIENT_GL ifdef

ported from cm10
http://review.cyanogenmod.org/25937

Change-Id: Ia73253b8d69738b79284d37b69423fa0bff8e4c5