Mikl�s Fazekas wrote:
> 
> Hello!
> 
> Looking at the OpenGL specification, and then looking at Mesa sources. One
> thing is not clear. When using non-compiled vertex arrays the OpenGL 1.1
> specification warns you no to change the elements of memory previously
> specified glVertexPointer between the glBegin/glEnd  pair! But it doesn't
> warn you doing it between them.
> 
> What the output of the following program should be? In my interpretation of
> OGL 1.1 specs it should be a Green rect inside of a black. Or is the output
> of the program is undefined?
> 
> (Mesa draws to Green).
> 
> So I think in glEnd we should check whatever there are array elements used
> between the pair and in that case we should translate/or flush them from
> glEnd.
> 
> Btw. I don't see any reason behind such programs. It could call
> glColorPointer again after changing the datas.
> 

Yes, unfortunately, I think you are right.  I'll have to add something to flush
in gl_End() if we've gotten a glArrayElement()...  I can't even make a local copy
of the array data (don't know its size), so this looks like the only possibility.

Keith


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to