updated opengl renderer to sync all the recent changes in java mode