Fix incorrect rendering

Valgrind reported an uninitialized variable which was often causing
incorrect rendering by not allowing depth testing to be enabled.

Change-Id: Ib167c083aac2557b734d1c640312cbe1318164ea
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>