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:
authorClément Foucault <foucault.clem@gmail.com>2018-03-25 16:53:17 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-03-25 21:06:12 +0300
commit9c1ab47fc44aa592e78bd129f5911a9708a82e78 (patch)
treedbb74bd4afbfee5a412e551939e918c502c4637e /source/blender/gpu/intern
parent619d977e1a5922fd3f11cf2867c9e9cc1aa54ad7 (diff)
GPUOffscreen: Remove unused offscreen blit.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_framebuffer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index a267d9cf1ee..b911f6d9c7f 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -665,23 +665,6 @@ void GPU_offscreen_unbind(GPUOffScreen *ofs, bool restore)
glEnable(GL_SCISSOR_TEST);
}
-void GPU_offscreen_blit(GPUOffScreen *ofs, int x, int y)
-{
- const int w = GPU_texture_width(ofs->color);
- const int h = GPU_texture_height(ofs->color);
-
- glBindFramebuffer(GL_READ_FRAMEBUFFER, ofs->fb->object);
- GLenum status = glCheckFramebufferStatus(GL_READ_FRAMEBUFFER);
-
- if (status == GL_FRAMEBUFFER_COMPLETE) {
- glBlitFramebuffer(0, 0, w, h, x, y, x + w, y + h, GL_COLOR_BUFFER_BIT, GL_NEAREST);
- }
- else {
- gpu_print_framebuffer_error(status, NULL);
- }
-
- glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
-}
void GPU_offscreen_read_pixels(GPUOffScreen *ofs, int type, void *pixels)
{