changed texture loaded to pass the current context.