mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
do safety checks before clearing
This commit is contained in:
parent
74a1162a17
commit
137becb894
4 changed files with 20 additions and 5 deletions
|
@ -551,7 +551,6 @@ namespace LatteDecompiler
|
|||
{
|
||||
bool isRectVertexShader = (static_cast<LattePrimitiveMode>(decompilerContext->contextRegisters[mmVGT_PRIMITIVE_TYPE]) == LattePrimitiveMode::RECTS);
|
||||
|
||||
// TODO: also check for rect primitive
|
||||
if (decompilerContext->shaderType == LatteConst::ShaderType::Vertex && (decompilerContext->options->usesGeometryShader || isRectVertexShader))
|
||||
decompilerContext->hasUniformVarBlock = true; // uf_verticesPerInstance
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue