Parnic:
	- Fixed minor inefficient texture access
	Also fixed an issue where we were looking for a variable that was not declared in the scope we were looking for it in.
