Cleanup: remove redundant glReadBuffer call when reading pixels

This commit is contained in:
Campbell Barton
2020-07-24 19:01:13 +10:00
parent 1a5945e2c3
commit 13fa4b9898

View File

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