diff --git a/GPU/Vulkan/DrawEngineVulkan.cpp b/GPU/Vulkan/DrawEngineVulkan.cpp index 3ca11821ed..4cf1a6882a 100644 --- a/GPU/Vulkan/DrawEngineVulkan.cpp +++ b/GPU/Vulkan/DrawEngineVulkan.cpp @@ -626,7 +626,6 @@ void DrawEngineVulkan::DoFlush(VkCommandBuffer cmd) { // We don't detect clears in this path, so here we can switch framebuffers if necessary. int vertexCount = 0; - int maxIndex = 0; bool useElements = true; // Decode directly into the pushbuffer @@ -635,7 +634,6 @@ void DrawEngineVulkan::DoFlush(VkCommandBuffer cmd) { gpuStats.numUncachedVertsDrawn += indexGen.VertexCount(); useElements = !indexGen.SeenOnlyPurePrims(); vertexCount = indexGen.VertexCount(); - maxIndex = indexGen.MaxIndex(); if (!useElements && indexGen.PureCount()) { vertexCount = indexGen.PureCount(); } diff --git a/ext/native/thin3d/thin3d_gl.cpp b/ext/native/thin3d/thin3d_gl.cpp index c04855a2db..898e19a948 100644 --- a/ext/native/thin3d/thin3d_gl.cpp +++ b/ext/native/thin3d/thin3d_gl.cpp @@ -729,7 +729,7 @@ void Thin3DGLContext::SetTextures(int start, int count, Thin3DTexture **textures glActiveTexture(GL_TEXTURE0 + i); glTex->Bind(); - if (samplerStates_.size() > i && samplerStates_[i]) { + if ((int)samplerStates_.size() > i && samplerStates_[i]) { samplerStates_[i]->Apply(glTex->HasMips(), glTex->CanWrap()); } } diff --git a/ext/native/thin3d/thin3d_vulkan.cpp b/ext/native/thin3d/thin3d_vulkan.cpp index f2e6a7fb1c..9ae2ed90fa 100644 --- a/ext/native/thin3d/thin3d_vulkan.cpp +++ b/ext/native/thin3d/thin3d_vulkan.cpp @@ -249,7 +249,6 @@ public: void ToVulkan(VkPipelineVertexInputStateCreateInfo *info, VkVertexInputAttributeDescription *attrDescs, VkVertexInputBindingDescription *bindDescs) { memset(info, 0, sizeof(*info)); info->sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; - int offset = 0; for (uint32_t i = 0; i < components_.size(); i++) { attrDescs[i].binding = 0; attrDescs[i].format = ConvertVertexDataTypeToVk(components_[i].type);