Fixed blatant bug in RenderTarget::valid() that hindered performance greatly