Skip to content

Commit a56071d

Browse files
committed
UPBGE: Fix variance shadow textures left bound.
The blur function left the last used texture bound, we just unbind it at the end of the function as the shader.
1 parent e888c7d commit a56071d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/blender/gpu/intern/gpu_framebuffer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ void GPU_framebuffer_blur(
442442
glTexCoord2d(0, 1); glVertex2f(1, -1);
443443
glEnd();
444444

445+
GPU_texture_unbind(blurtex);
445446
GPU_shader_unbind();
446447
}
447448

0 commit comments

Comments
 (0)