Skip to content

Commit

Permalink
x86 buildfix, warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 12, 2023
1 parent c9aa347 commit 1a1462e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/ReplacedTexture.h
Expand Up @@ -128,7 +128,7 @@ class ReplacedTexture {

void GetSize(int level, int *w, int *h) const {
_dbg_assert_(State() == ReplacementState::ACTIVE);
_dbg_assert_(level < levels_.size());
_dbg_assert_((size_t)level < levels_.size());
*w = levels_[level].fullW;
*h = levels_[level].fullH;
}
Expand Down
2 changes: 2 additions & 0 deletions GPU/Common/VertexDecoderX86.cpp
Expand Up @@ -204,9 +204,11 @@ JittedVertexDecoder VertexDecoderJitCache::Compile(const VertexDecoder &dec, int
#endif

// Initialize alpha reg.
#if PPSSPP_ARCH(AMD64)
if (dec.col) {
MOV(32, R(alphaReg), Imm32(1));
}
#endif

bool prescaleStep = false;
// Look for prescaled texcoord steps
Expand Down

0 comments on commit 1a1462e

Please sign in to comment.