Assert even in release mode if preset shaders fail to compile. This is just to help track down a Play crash.

This commit is contained in:
Henrik Rydgård committed 2018-11-21 18:14:26 +01:00
1 parent f2244f789e
commit 429a1fce01
8 files changed
+8 -7

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ bool AndroidJavaEGLGraphicsContext::InitFromRenderThread(ANativeWindow *wnd, int
draw_ = Draw::T3DCreateGLContext();
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
bool success = draw_->CreatePresets();
_assert_msg_(G3D, success, "Failed to compile preset shaders");
return success;
}