summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-16 13:07:09 +0200
committerRay <[email protected]>2022-06-16 13:07:09 +0200
commit7ed3d870fef3afeb11958d0129b7df3d42ed1daa (patch)
tree799528d3cd54ff3cccfdd1b8872d19accf64825b
parent2824aacd5dd665989640ef90a26fe87c3f9bf611 (diff)
downloadraylib-7ed3d870fef3afeb11958d0129b7df3d42ed1daa.tar.gz
raylib-7ed3d870fef3afeb11958d0129b7df3d42ed1daa.zip
REVIEWED: `rlGenTextureMipmaps()`, removed filtering setup
-rw-r--r--src/rlgl.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 81f08c7e..bf321357 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3113,9 +3113,6 @@ void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int
//glHint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE); // Hint for mipmaps generation algorithm: GL_FASTEST, GL_NICEST, GL_DONT_CARE
glGenerateMipmap(GL_TEXTURE_2D); // Generate mipmaps automatically
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); // Activate Trilinear filtering for mipmaps
-
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -3193,7 +3190,6 @@ void *rlReadTexturePixels(unsigned int id, int width, int height, int format)
return pixels;
}
-
// Read screen pixel data (color buffer)
unsigned char *rlReadScreenPixels(int width, int height)
{