Cannot call this API during the OnRender callback. During OnRender, only drawing operations that draw the content of the ...