diff --git a/src/display3d.c b/src/display3d.c index c7bf6c79e..0440a4eac 100644 --- a/src/display3d.c +++ b/src/display3d.c @@ -995,14 +995,14 @@ static void flipsAndRots(int texture) Vector2i sPTemp; /* Store the source rect as four points */ - sP1.x = 0; - sP1.y = 0; - sP2.x = xMult; - sP2.y = 0; - sP3.x = xMult; - sP3.y = yMult; - sP4.x = 0; - sP4.y = yMult; + sP1.x = 1; + sP1.y = 1; + sP2.x = (xMult - 1); + sP2.y = 1; + sP3.x = (xMult - 1); + sP3.y = (yMult - 1); + sP4.x = 1; + sP4.y = (yMult - 1); if (texture & TILE_XFLIP) { diff --git a/src/texture.c b/src/texture.c index 384bfabaf..abf11cd25 100644 --- a/src/texture.c +++ b/src/texture.c @@ -77,7 +77,7 @@ static int newPage(const char *name, int level, int width, int height, int count GL_RGBA, GL_UNSIGNED_BYTE, NULL); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);