From dcad6c9db8dc6ce343fab51430f7709e4b0fe94a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 29 Jul 2020 10:50:31 +1000 Subject: [PATCH] Cleanup: correct assert in GPU_offscreen_read_pixels --- source/blender/gpu/intern/gpu_framebuffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc index 3829573cde1..8864b8daf6a 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.cc +++ b/source/blender/gpu/intern/gpu_framebuffer.cc @@ -1046,7 +1046,7 @@ void GPU_offscreen_read_pixels(GPUOffScreen *ofs, eGPUDataFormat type, void *pix const int w = GPU_texture_width(ofs->color); const int h = GPU_texture_height(ofs->color); - BLI_assert(ELEM(type, GPU_DATA_UNSIGNED_BYTE, GL_FLOAT)); + BLI_assert(ELEM(type, GPU_DATA_UNSIGNED_BYTE, GPU_DATA_FLOAT)); GLenum gl_type = (type == GPU_DATA_FLOAT) ? GL_FLOAT : GL_UNSIGNED_BYTE; glReadPixels(0, 0, w, h, GL_RGBA, gl_type, pixels);