Hello, I'm trying to set the texture coordinate by pixels. I do something like this:


glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glOrtho(-width, width, -height, height, -1, 1);

//...