D3D11 prep

This commit is contained in:
Henrik Rydgård committed 2022-08-06 18:27:03 +02:00
1 parent 7800bfdf72
commit da65af832a
8 files changed
+60 -31

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@ void TextureCacheGLES::Unbind() {
}
void TextureCacheGLES::BindAsClutTexture(Draw::Texture *tex) {
GLRTexture *glrTex = (GLRTexture *)draw_->GetNativeObject(Draw::NativeObject::TEXTURE, tex);
GLRTexture *glrTex = (GLRTexture *)draw_->GetNativeObject(Draw::NativeObject::TEXTURE_VIEW, tex);
render_->BindTexture(TEX_SLOT_CLUT, glrTex);
render_->SetTextureSampler(TEX_SLOT_CLUT, GL_REPEAT, GL_CLAMP_TO_EDGE, GL_NEAREST, GL_NEAREST, 0.0f);
}