[Bf-blender-cvs] [13fa4b98986] master: Cleanup: remove redundant glReadBuffer call when reading pixels

Campbell Barton noreply at git.blender.org
Fri Jul 24 11:04:29 CEST 2020


Commit: 13fa4b98986e569f0e4c6a7945104ebd59567f96
Author: Campbell Barton
Date:   Fri Jul 24 19:01:13 2020 +1000
Branches: master
https://developer.blender.org/rB13fa4b98986e569f0e4c6a7945104ebd59567f96

Cleanup: remove redundant glReadBuffer call when reading pixels

===================================================================

M	source/blender/gpu/intern/gpu_framebuffer.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list