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:
authorCampbell Barton <ideasman42@gmail.com>2020-07-24 12:01:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-24 12:01:13 +0300
commit13fa4b98986e569f0e4c6a7945104ebd59567f96 (patch)
tree113002f769d62046b7f1a30220f5db054548af9d
parent1a5945e2c3c4d0efca2eb0329d2a574795bb9ef2 (diff)
Cleanup: remove redundant glReadBuffer call when reading pixels
-rw-r--r--source/blender/gpu/intern/gpu_framebuffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 77abb786117..33ca9e7bc3b 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -1077,7 +1077,6 @@ void GPU_clear(eGPUFrameBufferBits flags)
void GPU_frontbuffer_read_pixels(
int x, int y, int w, int h, int channels, eGPUDataFormat format, void *data)
{
- glReadBuffer(GL_FRONT);
gpu_framebuffer_read_color_ex(x, y, w, h, channels, GL_FRONT, format, data);
}