diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index 8343f3265b..d790e76a5f 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -307,7 +307,7 @@ void GLGSRender::end() //setup textures { - int texture_index = 0; + //int texture_index = 0; for (int i = 0; i < rsx::limits::textures_count; ++i) { int location; @@ -322,10 +322,13 @@ void GLGSRender::end() continue; } - __glcheck glProgramUniform1i(m_program->id(), location, i); - __glcheck m_gl_textures[i].init(i, textures[i]); + m_gl_textures[i].set_target(get_gl_target_for_texture(textures[i])); + __glcheck m_gl_texture_cache.upload_texture(i, textures[i], m_gl_textures[i], m_rtts); - texture_index++; + __glcheck glProgramUniform1i(m_program->id(), location, i); + //__glcheck m_gl_textures[i].init(i, textures[i]); + + //texture_index++; if (m_program->uniforms.has_location("texture" + std::to_string(i) + "_cm", &location)) { diff --git a/rsx_program_decompiler b/rsx_program_decompiler index e1bd56e959..9f8814af57 160000 --- a/rsx_program_decompiler +++ b/rsx_program_decompiler @@ -1 +1 @@ -Subproject commit e1bd56e959e4eaae181c7c19b94fe2fb1ec00c08 +Subproject commit 9f8814af57264c82b7e063c1df5d71dc32c7a951