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:
authorDaniel Stokes <kupomail@gmail.com>2013-07-23 04:52:49 +0400
committerDaniel Stokes <kupomail@gmail.com>2013-07-23 04:52:49 +0400
commitf7037737f35e5bc7f1194c477a1f51bcd3b1eb50 (patch)
treef9e4c4b69c3909fe46577cfb8c2be5f6b6a8c767 /source/blender/gpu
parentc49a9c25fc4e9173e34aa2f309cfe35e6416e17d (diff)
BGE fix [#35472] Sun variance shadows does not work in game engine
The game engine had depth testing enabled when blurring the shadows which caused the blurring to not work properly.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index ffd3bba5493..ea7b169a882 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -989,6 +989,8 @@ void GPU_framebuffer_blur(GPUFrameBuffer *fb, GPUTexture *tex, GPUFrameBuffer *b
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
+ glDisable(GL_DEPTH_TEST);
+
GPU_texture_bind(tex, 0);
/* Drawing quad */