diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-16 03:06:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-16 19:01:44 +0300 |
commit | ab19abe22315f2e2dcce989beef6dcabee528299 (patch) | |
tree | 751d0dba4738ed2e6281b94bb12cb68b5f904952 /source/blender/draw | |
parent | bc8508115645f6426431217d1fc78cfe32ce6b23 (diff) |
Cleanup: Port glClear calls to GPU module functions
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lut_gen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lut_gen.c b/source/blender/draw/engines/eevee/eevee_lut_gen.c index 5f20d6fbfb8..1be5a1d3930 100644 --- a/source/blender/draw/engines/eevee/eevee_lut_gen.c +++ b/source/blender/draw/engines/eevee/eevee_lut_gen.c @@ -76,8 +76,7 @@ static struct GPUTexture *create_ggx_lut_texture(int UNUSED(w), int UNUSED(h)) DRW_draw_pass(pass); float *data = MEM_mallocN(sizeof(float[3]) * w * h, "lut"); - glReadBuffer(GL_COLOR_ATTACHMENT0); - glReadPixels(0, 0, w, h, GL_RGB, GL_FLOAT, data); + GPU_framebuffer_read_color(fb, 0, 0, w, h, 3, 0, data); printf("{"); for (int i = 0; i < w * h * 3; i += 3) { |