Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-07-29 03:50:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-07-29 03:50:31 +0300
commitdcad6c9db8dc6ce343fab51430f7709e4b0fe94a (patch)
tree6eedb9d322ac9d7527967ad182d0ab7aafc5d117 /source/blender
parentac6fbf6ba8df7d8430fabfd50967df6c34e55c7b (diff)
Cleanup: correct assert in GPU_offscreen_read_pixels
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/gpu/intern/gpu_framebuffer.cc2
1 files changed, 1 insertions, 1 deletions
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);