Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-04-27 21:24:32 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-27 21:24:32 +0300
commit079e0b5943f379caab2c92b3aabd033da5650e3f (patch)
treecfb6d8baf4f15853ab454f2bb61766b408a57979 /source/blender
parent0d5c5a8438badf5e4921a96b9d4648d1d0dc3aee (diff)
OpenGL: don't set texture LoD bias via glTexEnvf
Not supported in core profile. We could do this in GLSL if it's really needed. Part of T51164
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_icons.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 86fe517c975..88d92906040 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -1024,9 +1024,6 @@ static void icon_draw_texture(
y1 = iy * icongltex.invh;
y2 = (iy + ih) * icongltex.invh;
- /* sharper downscaling, has no effect when scale matches with a mip level */
- glTexEnvf(GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, -0.5f);
-
glBindTexture(GL_TEXTURE_2D, icongltex.id);
VertexFormat *format = immVertexFormat();
unsigned int pos = VertexFormat_add_attrib(format, "pos", COMP_F32, 2, KEEP_FLOAT);
@@ -1054,8 +1051,6 @@ static void icon_draw_texture(
immUnbindProgram();
- glTexEnvf(GL_TEXTURE_FILTER_CONTROL, GL_TEXTURE_LOD_BIAS, 0.0f);
-
glBindTexture(GL_TEXTURE_2D, 0);
}