Re: [Mesa3d-dev] r300g color bug with VBO

2010-03-08 Thread Marek Olšák
Yes, this is a known issue. The problem is that GL_RGBA and GL_BGRA map to PIPE_FORMAT_R8G8B8A8 (RGBA) and PIPE_FORMAT_A8R8G8B8 (ARGB), respectively, which is wrong. The attached patch fixes it for r300g but breaks other drivers which depend on Draw (softpipe, llvmpipe). The reason is that Draw

Re: [Mesa3d-dev] r300g color bug with VBO

2010-03-08 Thread Marek Olšák
Also I've fixed GL_RGBA in master so now only GL_BGRA remains unresolved... On Tue, Mar 9, 2010 at 1:29 AM, Tom t...@riseup.net wrote: Hi people, With the r300g driver (git ~today) drawing tris with color pointer like so: glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(struct vtx_data), blah);