diff --git a/gfx_es2/draw_buffer.cpp b/gfx_es2/draw_buffer.cpp index 48cda85819..d79f441f0d 100644 --- a/gfx_es2/draw_buffer.cpp +++ b/gfx_es2/draw_buffer.cpp @@ -66,6 +66,10 @@ void DrawBuffer::End() { } void DrawBuffer::Flush(bool set_blend_state) { + if (!program_) { + ELOG("No program set!"); + return; + } glsl_bind(program_); if (count_ == 0) return; diff --git a/ui/ui_context.cpp b/ui/ui_context.cpp index 34d5edb732..b8bd28466b 100644 --- a/ui/ui_context.cpp +++ b/ui/ui_context.cpp @@ -84,7 +84,6 @@ Bounds UIContext::GetScissorBounds() { return Bounds(0, 0, dp_xres, dp_yres); } - void UIContext::ActivateTopScissor() { if (scissorStack_.size()) { const Bounds &bounds = scissorStack_.back(); diff --git a/ui/ui_screen.cpp b/ui/ui_screen.cpp index 9535221eca..9e315c0e8e 100644 --- a/ui/ui_screen.cpp +++ b/ui/ui_screen.cpp @@ -39,7 +39,8 @@ void UIScreen::render() { screenManager()->getUIContext()->End(); screenManager()->getUIContext()->Flush(); } else { - ELOG("Tried to render without a view root"); + // This isn't really an error if you customize the view a bit. + // ELOG("Tried to render without a view root"); } }