diff --git a/shell/renderSessions/NanovgSession.cpp b/shell/renderSessions/NanovgSession.cpp index bd5c9be969..c773650e51 100644 --- a/shell/renderSessions/NanovgSession.cpp +++ b/shell/renderSessions/NanovgSession.cpp @@ -37,14 +37,12 @@ int NanovgSession::loadDemoData(NVGcontext* vg, DemoData* data) { #endif }); - int i; - if (vg == NULL) { IGL_DEBUG_ASSERT(false); return -1; } - for (i = 0; i < 12; i++) { + for (int i = 0; i < 12; i++) { char file[128]; snprintf(file, 128, "image%d.jpg", i + 1);