Polygons are drawn black after I load a texture

I use the TextureLoader from here in my game,
I need textures for my sprite but at the same time use

GL11.glPushMatrix();

GL11.glColor3f((float) color.getRed() / 255,
	(float) color.getGreen() / 255, (float) color.getBlue() / 255);
GL11.glBegin(GL11.GL_LINES);
GL11.glVertex2d(points[i][j].getX(), points[i][j].getY());
GL11.glVertex2d(points[i][j + 1].getX(), points[i][j + 1]
	.getY());
GL11.glEnd();

GL11.glPopMatrix();

to draw my background. As soon as I turn off the loading of the Textures, the background lines
are drawn in the color I want it too. But when a texture is loaded, it draws it in every time.
So how to change that?

Sounds like you left some stray OpenGl state still set that you didn’t have before. At a guess I’d say you’ve still got textures enabled, throw in a GL11.glDisable(GL11.GL_TEXTURE_2D); after you’ve drawn your textured geometry to put it back into doing untextured stuff.

Thank you for the fast answer :slight_smile:
That’s exactly what I missed to do!