[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] How to set a canvas backing store to display units?

On 15/06/2012 12:42, Mark Callow wrote:

What is generally hiding the brokenness now is that the viewport is clamped to MAX_VIEWPORT_DIM which is commonly the limit of the allocation for very large canvases. This is not always the case. A implementation may choose to allocate a drawing buffer < MAX_VIEWPORT_DIM for memory or performance reasons or it may be forced to because MAX_RENDERBUFFER_SIZE is less than MAX_VIEWPORT_DIM.
Oops. This does not hide the brokenness of the subject program. It merely ensures that -1.0 to 1.0 runs the width & height of the drawing buffer regardless of its size, when it is < the canvas size and == MAX_VIEWPORT_DIM.