diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-24 12:01:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-24 12:01:13 +0300 |
commit | 13fa4b98986e569f0e4c6a7945104ebd59567f96 (patch) | |
tree | 113002f769d62046b7f1a30220f5db054548af9d /source/blender/gpu | |
parent | 1a5945e2c3c4d0efca2eb0329d2a574795bb9ef2 (diff) |
Cleanup: remove redundant glReadBuffer call when reading pixels
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.c | 1 |
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); } |