diff --git a/src/core/PICA/shader_interpreter.cpp b/src/core/PICA/shader_interpreter.cpp index a265ffc5..7a7bf45b 100644 --- a/src/core/PICA/shader_interpreter.cpp +++ b/src/core/PICA/shader_interpreter.cpp @@ -186,8 +186,8 @@ void PICAShader::max(u32 instruction) { u32 componentMask = operandDescriptor & 0xf; for (int i = 0; i < 4; i++) { if (componentMask & (1 << i)) { - const auto mininum = srcVec1[3 - i] > srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; - destVector[3 - i] = mininum; + const auto maximum = srcVec1[3 - i] > srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; + destVector[3 - i] = maximum; } } } diff --git a/src/core/kernel/kernel.cpp b/src/core/kernel/kernel.cpp index 2725865f..a2fd7896 100644 --- a/src/core/kernel/kernel.cpp +++ b/src/core/kernel/kernel.cpp @@ -203,7 +203,7 @@ void Kernel::getProcessInfo() { regs[0] = SVCResult::Success; } -// Result GetThreadId(u32* threadId, Handle thread) +// Result DuplicateHandle(Handle* out, Handle original) void Kernel::duplicateHandle() { Handle original = regs[1]; logSVC("DuplicateHandle(handle = %X)\n", original);