Stop blending

Hi,

I’m trying to render a basic texture to a polygon, but I don’t want OGL to blend or smooth the values between the pixels in my poly, I just want them looking blocky and square. How can I do this?

I’ve tried setting the following things:

glShadeModel(GL_FLAT);
glDisable(GL_BLEND);
glDisable(GL_DITHER);

But it to no avail. This is how it looks when displaying a 4x4 texture of random colored pixels:

How can I stop it from blending them?

Many thanks in advance.

Dillie

glTexParameteri(GL_TEXTURE2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);

Many thanks!!!

You get the gold star. :stuck_out_tongue: