UI: Minor assert fix.

This commit is contained in:
Unknown W. Brackets committed 2019-09-28 21:10:26 -07:00
1 parent 813d3643db
commit 029dd07c8e
1 file changed
+1 -1
+1 -1
View File
@@ -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);