Updated the use of Dispose, also fixed shader errors.