From: Stephane C. <Ste...@em...> - 2001-07-12 09:04:31
|
ok, I changed GLfloat (*rgba)[4] = (GLfloat (*)[4]) tmpImage + row * width * 4; to GLfloat (*rgba)[4] = (GLfloat (*)[4]) (tmpImage + row * width * 4); (which removes warnings compared to the previous version) at both line 198 and 230, and it seems to work now. Stephane Conversy wrote: > > Hello. > > I tried to use glCopyPixels with some scale and bias, > and I get one-pixel width "stripes" instead of plain rectangles, > as if line adressing in a pixmap was broken. > > I changed in swrast/s_copypix.c:198 > > GLfloat (*rgba)[4] = (GLfloat (*)[4]) tmpImage + row * width * 4; > > for: > > GLfloat (*rgba)[4] = tmpImage + row * width * 4; > > and the bug is fixed. There is a similar statement at line 230, > I suspect it's buggy as well since convImage is in the same > format than tmpImage. -- Stephane Conversy Ecole des Mines de Nantes |