ran scan-build (clang-analyzer) and there was a bug with initial calls to making the renderer where uninitialied member variables were being checked in struct renderer_s (which is undefined behavior).  changed allocation to calloc instead of malloc (which is what it should have been, since i do check for null).