added gl thread check on resource deletion to android