removed deprecated gl functions from cocoa renderer gl