ActivateTopScissor doesn't belong in UIContext::Begin.

This commit is contained in:
Henrik Rydgård committed 2018-12-18 10:37:39 +01:00
1 parent 2d01db805e
commit 260fd3c9ee
4 files changed
+4 -9

No files matched your search

+1 -1
View File
@@ -38,12 +38,12 @@ void UIContext::BeginFrame() {
FLOG("Failed to load ui_atlas.zim");
}
}
ActivateTopScissor();
}
void UIContext::Begin() {
draw_->BindSamplerStates(0, 1, &sampler_);
draw_->BindTexture(0, uitexture_->GetTexture());
ActivateTopScissor();
UIBegin(ui_pipeline_);
}