Fixed stride warning.
Crash cause when both vertex and index buffer was NULL for objects is now handled.

Signed-off-by: Markus Tillman <reetopps6@hotmail.com>