Last y axis of tiles stretch infinitly?


http://i.imgur.com/tpeCrQL.png

Doesn’t happen on last x axis for some reason?

Dunno whats happening. Heres my render code:


glTranslatef(Game.xOffset, Game.yOffset, 0);
	Game.xOffset = 0;
	Game.yOffset = 0;
		
	glClear(GL_COLOR_BUFFER_BIT);
	glBindTexture(GL_TEXTURE_RECTANGLE_ARB, textureSheetID);

	glEnableClientState(GL_VERTEX_ARRAY);
	glEnableClientState(GL_TEXTURE_COORD_ARRAY);
	GL13.glClientActiveTexture(GL13.GL_TEXTURE0);
		
	glBindBuffer(GL_ARRAY_BUFFER, vboList.get(0));
	glVertexPointer(2, GL_FLOAT, 0, 0);
	glBindBuffer(GL_ARRAY_BUFFER, vboList.get(1));
	glTexCoordPointer(2, GL_FLOAT, 0, 0);
	
	glDrawArrays(GL_QUADS, 0, MAPSIZE * MAPSIZE * 4); //mapsize*mapsize * 4
		
	glBindBuffer(GL_ARRAY_BUFFER, 0);
		
	glDisableClientState(GL_VERTEX_ARRAY);
	glDisableClientState(GL_TEXTURE_COORD_ARRAY);
		
        glBindTexture(GL_TEXTURE_RECTANGLE_ARB, 0);

Thanks.(Can give extra info/code if needed)

anyone?

you are most liikely missing the two other coordinates on those squares at the bottom thats why.

Is your tile generation just messed up and repeating the bottom row of tiles over and over again? Use a texture that is not completely solid (ie. add borders) to see if this is happening.

I second this, because I dont see anything in your render code that would cause this graphics glitch, it seems more like a logic problem generating the map itself.

looks like CLAMP_TO_EDGE texture-wrapping.