Make pipelines bound state

This commit is contained in:
Henrik Rydgård committed 2016-12-27 11:59:10 +01:00
1 parent 4462a8cc99
commit 166243e0fd
8 files changed
+65 -61

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ void UIContext::Init(Draw::DrawContext *thin3d, Draw::Pipeline *uipipe, Draw::Pi
void UIContext::Begin() {
thin3d_->SetBlendState(blendNormal_);
thin3d_->SetSamplerStates(0, 1, &sampler_);
thin3d_->BindSamplerStates(0, 1, &sampler_);
thin3d_->SetDepthStencilState(depth_);
thin3d_->SetRasterState(rasterNoCull_);
thin3d_->BindTexture(0, uitexture_);
@@ -56,7 +56,7 @@ void UIContext::Begin() {
void UIContext::BeginNoTex() {
thin3d_->SetBlendState(blendNormal_);
thin3d_->SetSamplerStates(0, 1, &sampler_);
thin3d_->BindSamplerStates(0, 1, &sampler_);
thin3d_->SetRasterState(rasterNoCull_);
UIBegin(ui_pipeline_notex_);
}