Skip to content

Commit

Permalink
UPBGE: Fix variance shadow textures left bound.
Browse files Browse the repository at this point in the history
The blur function left the last used texture bound, we just unbind it at
the end of the function as the shader.
  • Loading branch information
panzergame committed May 4, 2016
1 parent e888c7d commit a56071d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/blender/gpu/intern/gpu_framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ void GPU_framebuffer_blur(
glTexCoord2d(0, 1); glVertex2f(1, -1);
glEnd();

GPU_texture_unbind(blurtex);
GPU_shader_unbind();
}

Expand Down

0 comments on commit a56071d

Please sign in to comment.