Blender Git Loki

Git Commits -> Revision 698bae0

Revision 698bae0 by Dalai Felinto (master)
August 30, 2017, 15:00 (GMT)
Eevee: Fix conditional statement depending on unitialized value

Basically since g_data was malloc'ed (instead of calloc'ed)
g_data->minzbuffer was never initialized.

So when running DRW_framebuffer_init after EEVEE_effects_init, the test
to *g_data->minzbuffer would lead to unpredictable results.

This was caught by valgrind, reported by Sergey Sharybin.

Commit Details:

Full Hash: 698bae05aa6935d2f06b307c9817f979c5ace29a
Parent Commit: 510651e
Lines Changed: +1, -1

1 Modified Path:

/source/blender/draw/engines/eevee/eevee_engine.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021