Renderbuffer typecheck fix