From 227dd67c00411c2d3a335fe128ced427db3cc553 Mon Sep 17 00:00:00 2001 From: bjorn Date: Tue, 31 Oct 2017 01:33:16 -0700 Subject: [PATCH] Set default shader properly to avoid crash; --- src/graphics/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index b8273afb..af535415 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -52,7 +52,7 @@ void lovrGraphicsReset() { float projection[16]; state.transform = 0; state.view = 0; - state.defaultShader = -1; + state.defaultShader = SHADER_DEFAULT; lovrGraphicsSetBackgroundColor((Color) { 0, 0, 0, 255 }); lovrGraphicsSetBlendMode(BLEND_ALPHA, BLEND_ALPHA_MULTIPLY); lovrGraphicsSetColor((Color) { 255, 255, 255, 255 });