mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
gl: fixed multiple textures binding
This commit is contained in:
parent
509bbddac1
commit
dbccf5fbad
3 changed files with 7 additions and 5 deletions
|
@ -51,7 +51,6 @@ namespace rsx
|
|||
}
|
||||
|
||||
glGenTextures(1, &m_id);
|
||||
bind();
|
||||
}
|
||||
|
||||
int texture::gl_wrap(int wrap)
|
||||
|
@ -90,13 +89,14 @@ namespace rsx
|
|||
return 1.0f;
|
||||
}
|
||||
|
||||
void texture::init(rsx::texture& tex)
|
||||
void texture::init(int index, rsx::texture& tex)
|
||||
{
|
||||
if (!m_id)
|
||||
{
|
||||
create();
|
||||
}
|
||||
|
||||
glActiveTexture(GL_TEXTURE0 + index);
|
||||
bind();
|
||||
|
||||
const u32 texaddr = rsx::get_address(tex.offset(), tex.location());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue