[Help OPENTK – OpenGL]Why does this now work?

When i change the color of one block in the array it doesnt render the new color but keeps the old. Let me know if you need any code of the methods.

 for (int x = 0; x < layer.gridSize.Width; x++) { for (int y = 0; y < layer.gridSize.Height; y++) { GraphicsTools.DrawRect(x * tileWidth, y * tileHeight, tileWidth, tileHeight, layer.blocks[x, y].color); } } 

by iLostMyAcc via /r/csharp

Leave a Reply