Fix crash in Zip UI. Make another crash happen earlier.

This commit is contained in:
Henrik Rydgård committed 2019-09-27 22:56:37 +02:00
1 parent ccf63ef544
commit a461dbeecb
3 files changed
+9 -5

No files matched your search

+1
View File
@@ -780,6 +780,7 @@ 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!");
ui_draw2d.SetAtlas(&ui_atlas);