glBufferData / glBufferSubData generates valid code