error handling changes

This commit is contained in:
Henrik Rydgard committed 2013-08-14 23:04:35 +02:00
1 parent 77fcfd0f20
commit 1be5ce83d7
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -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;
-1
View File
@@ -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();
+2 -1
View File
@@ -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");
}
}