From c07dafab8f5100f849bad8e8ae5d91fbb03f0733 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 9 Jun 2003 22:28:42 +0000 Subject: [PATCH] fix texture reversal --- render2/texture.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/render2/texture.c b/render2/texture.c index 90f12397..2508ef7c 100644 --- a/render2/texture.c +++ b/render2/texture.c @@ -125,17 +125,17 @@ void RrTexturePaint(struct RrSurface *sur, struct RrTexture *tex, glColor3f(1.0, 1.0, 1.0); glBindTexture(GL_TEXTURE_2D, rgba->texid); glBegin(GL_TRIANGLES); - glTexCoord2f(rgba->w/(float)rgba->padw, rgba->h/(float)rgba->padh); - glVertex2i(x, y); glTexCoord2f(0, rgba->h/(float)rgba->padh); + glVertex2i(x, y); + glTexCoord2f(rgba->w/(float)rgba->padw, rgba->h/(float)rgba->padh); glVertex2i(x+w, y); - glTexCoord2f(0, 0); + glTexCoord2f(rgba->w/(float)rgba->padw, 0); glVertex2i(x+w, y+h); glVertex2i(x+w, y+h); - glTexCoord2f(rgba->w/(float)rgba->padw, 0); + glTexCoord2f(0, 0); glVertex2i(x, y+h); - glTexCoord2f(rgba->w/(float)rgba->padw, rgba->h/(float)rgba->padh); + glTexCoord2f(0, rgba->h/(float)rgba->padh); glVertex2i(x, y); glEnd(); -- 2.34.1