From 029dd07c8ea518fe599ae649fe92f4f052ee9e1a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 28 Sep 2019 21:09:47 -0700 Subject: [PATCH] UI: Minor assert fix. --- UI/NativeApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 03c920bee9..78ff472892 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -780,8 +780,8 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) { using namespace Draw; Core_SetGraphicsContext(graphicsContext); g_draw = graphicsContext->GetDrawContext(); - _assert_msg_(G3D, g_draw->GetVshaderPreset(VS_COLOR_2D) != nullptr, "Failed to compile presets"); _assert_msg_(G3D, g_draw, "No draw context available!"); + _assert_msg_(G3D, g_draw->GetVshaderPreset(VS_COLOR_2D) != nullptr, "Failed to compile presets"); ui_draw2d.SetAtlas(&ui_atlas); ui_draw2d_front.SetAtlas(&ui_atlas);