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);