mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
OpenGL: Remove "-legacy" flag
"Intel legacy mode" was a special mode to workaround various Intel OpenGL driver limitations during the earlier years of Cemu. It's been unmaintained for years and no longer serves a purpose. If we ever bring back compatibility with ancient Intel GPUs it should be done in a more structured way than a blunt yes/no flag.
This commit is contained in:
parent
193767e6cc
commit
731713de3a
11 changed files with 26 additions and 126 deletions
|
@ -229,21 +229,16 @@ void LatteTexture_updateTexturesForStage(LatteDecompilerShader* shaderContext, u
|
|||
// if this texture is bound multiple times then use alternative views
|
||||
if (textureView->lastTextureBindIndex == LatteGPUState.textureBindCounter)
|
||||
{
|
||||
// Intel driver has issues with textures that have multiple views bound and used by a shader, causes a softlock in BotW
|
||||
// therefore we disable this on Intel
|
||||
if (LatteGPUState.glVendor != GLVENDOR_INTEL_NOLEGACY)
|
||||
LatteTextureViewGL* textureViewGL = (LatteTextureViewGL*)textureView;
|
||||
// get next unused alternative texture view
|
||||
while (true)
|
||||
{
|
||||
LatteTextureViewGL* textureViewGL = (LatteTextureViewGL*)textureView;
|
||||
// get next unused alternative texture view
|
||||
while (true)
|
||||
{
|
||||
textureViewGL = textureViewGL->GetAlternativeView();
|
||||
if (textureViewGL->lastTextureBindIndex != LatteGPUState.textureBindCounter)
|
||||
break;
|
||||
}
|
||||
textureView = textureViewGL;
|
||||
textureViewGL = textureViewGL->GetAlternativeView();
|
||||
if (textureViewGL->lastTextureBindIndex != LatteGPUState.textureBindCounter)
|
||||
break;
|
||||
}
|
||||
}
|
||||
textureView = textureViewGL;
|
||||
}
|
||||
textureView->lastTextureBindIndex = LatteGPUState.textureBindCounter;
|
||||
rendererGL->renderstate_updateTextureSettingsGL(shaderContext, textureView, textureIndex + glBackendBaseTexUnit, word4, textureIndex, isDepthSampler);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue