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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-04-27 22:21:16 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-27 22:21:16 +0400
commitf5e022a0a0528e8d674afbbe000762a7b817e516 (patch)
tree161648128e66cf17548f184aa5c188552c4a53f4 /source/blender/editors/space_sequencer
parent69b0b0a6240635bf6264835a2da928aa48dcb5be (diff)
Solve possible uninitialized variables usage in sequencer draw function
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 81305bca164..efda7554b33 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1063,11 +1063,14 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
bool force_fallback = false;
force_fallback |= !ELEM(U.image_draw_method, IMAGE_DRAW_METHOD_AUTO, IMAGE_DRAW_METHOD_GLSL);
- force_fallback |= ibuf->dither != 0.0f;
+ force_fallback |= (ibuf->dither != 0.0f);
if (force_fallback) {
/* Fallback to CPU based color space conversion */
glsl_used = false;
+ format = GL_RGBA;
+ type = GL_UNSIGNED_BYTE;
+ display_buffer = NULL;
}
else if (ibuf->rect_float) {
display_buffer = ibuf->rect_float;