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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-28 02:51:28 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-28 02:51:28 +0400
commit134bbf37913360c3c87649e871145a0984eaf166 (patch)
tree149b318f02b77e982c0635c75e7f142a9bbd622d /source/blender/gpu/intern
parentf4c93ae9355be8f5e1b2dbdc5fda0f3bce71d67d (diff)
GPU: remove GPU Mipmap Generation option and just always enable it, it's an old
OpenGL 1.4 feature that is stable, there's no reason not to use it. Also fixed GPU mipmap generation not working in the game player.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index e3ba4cb1f95..f2ddedcd76c 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -240,16 +240,10 @@ static struct GPUTextureState {
/* Mipmap settings */
-void GPU_set_gpu_mipmapping(int gpu_mipmap)
+void GPU_set_gpu_mipmapping()
{
- int old_value = GTS.gpu_mipmap;
-
- /* only actually enable if it's supported */
- GTS.gpu_mipmap = gpu_mipmap && GLEW_EXT_framebuffer_object;
-
- if (old_value != GTS.gpu_mipmap) {
- GPU_free_images();
- }
+ /* always enable if it's supported */
+ GTS.gpu_mipmap = GLEW_EXT_framebuffer_object;
}
void GPU_set_mipmap(int mipmap)