Early return if n is zero in glGenRenderbuffers and glGenTextures
if result is null, early return