mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-08 03:56:24 +02:00
error handling changes
This commit is contained in:
1 parent
77fcfd0f20
commit
1be5ce83d7
3 files changed
+6
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user