mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Minor warning fixes
This commit is contained in:
parent
7cb6192005
commit
fa64417917
@ -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();
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user