diff --git a/pcsx2/GS/Renderers/Common/GSDevice.cpp b/pcsx2/GS/Renderers/Common/GSDevice.cpp index a2d741d595..dbb33cb5a9 100644 --- a/pcsx2/GS/Renderers/Common/GSDevice.cpp +++ b/pcsx2/GS/Renderers/Common/GSDevice.cpp @@ -1110,7 +1110,7 @@ void GSDevice::BeginDSAsRT(GSTexture* ds, const GSVector4i& drawarea) // Create a temporary RT and copy the area needed for the draw. const int w = ds->GetWidth(); const int h = ds->GetHeight(); - if (m_ds_as_rt = g_gs_device->CreateFeedbackTarget(w, h, GSTexture::Format::DepthColor, false, true)) + if ((m_ds_as_rt = g_gs_device->CreateFeedbackTarget(w, h, GSTexture::Format::DepthColor, false, true))) { const GSVector4 dRect(drawarea); const GSVector4 sRect(dRect.x / w, dRect.y / h, dRect.z / w, dRect.w / h); diff --git a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp index 5a90ae3baf..9d7fd37724 100644 --- a/pcsx2/GS/Renderers/HW/GSTextureCache.cpp +++ b/pcsx2/GS/Renderers/HW/GSTextureCache.cpp @@ -5297,7 +5297,7 @@ bool GSTextureCache::Move(u32 SBP, u32 SBW, u32 SPSM, int sx, int sy, u32 DBP, u // If it was matched to an old target, make sure to clear the other type and update its information. // Also update information if the buffer width of the new data is larger than the existing target. - if (dst->m_was_dst_matched || (Common::AlignUpPow2(w, 64) / GSLocalMemory::m_psm[new_TEX0.PSM].pgs.x) > dst->m_TEX0.TBW) + if (dst->m_was_dst_matched || static_cast(Common::AlignUpPow2(w, 64) / GSLocalMemory::m_psm[new_TEX0.PSM].pgs.x) > dst->m_TEX0.TBW) { dst->m_TEX0 = new_TEX0; } diff --git a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp index 4d96d13b59..728e0dcdba 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp +++ b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp @@ -1262,7 +1262,7 @@ void GSDeviceOGL::DestroyPipelineStatisticsQueries() glEndQuery(GL_FRAGMENT_SHADER_INVOCATIONS_ARB); } - for (int i = 0; i < m_pipeline_statistics_queries.size(); i++) + for (size_t i = 0; i < m_pipeline_statistics_queries.size(); i++) { glDeleteQueries(2, m_pipeline_statistics_queries[i].data()); m_pipeline_statistics_queries[i].fill(0);