Sets a flag if the texture being sent to the shader is null
General code cleanup and easier maintenance.