RenderTexture bug, horizontal and vertical lines

Hello. I encountered a problem.
When i using RenderTexture, draw area by pixels. Appear weird stripes.
@ RenderTexture* rt = RenderTexture::create(256, 256);
rt~~>beginWithClear;
for {
for {
DrawPrimitives::setDrawColor4B;
Point p = Point;
DrawPrimitives::drawPoint;
}
}
rt~~>end();@

However, if a little change the code then all is well.
@ RenderTexture* rt = RenderTexture::create(256, 256);
rt~~>beginWithClear;
for {
for {
DrawPrimitives::setDrawColor4B;
Point p = Point * 255.0 / 256.0, * 255.0 / 256.0);
DrawPrimitives::drawPoint;
}
}
rt~~>end();@

Sorry for googletranslate.


1.png (1.1 KB)