diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2020-07-06 08:54:04 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2020-07-07 12:13:10 +0200 |
commit | 48d44319b73cb5ef34bfbb3bade6e73c1891c92f (patch) | |
tree | 520039fc3eb02ea7b0face42626bed28b9f24d57 | |
parent | 6673cf69daf5fa2dc8b2371b8936dd3e0f1f4f6e (diff) |
RHI: Fix a couple warnings
Change-Id: I23e1d89ba354843d354e8dc5b4044e400a64f5c0
Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r-- | src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp b/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp index 3af1be523..07170c4fb 100644 --- a/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp +++ b/src/plugins/renderers/rhi/graphicshelpers/submissioncontext.cpp @@ -259,6 +259,8 @@ void applyStateHelper(const BlendEquation *state, QRhiGraphicsPipeline *gp) noex return QRhiGraphicsPipeline::Min; case QBlendEquation::Max: return QRhiGraphicsPipeline::Max; + default: + return QRhiGraphicsPipeline::Add; } }; @@ -1268,7 +1270,7 @@ bool SubmissionContext::setParameters(ShaderParameterPack ¶meterPack, RHISha // Fill Texture Uniform Value with proper texture units // so that they can be applied as regular uniforms in a second step - for (int i = 0; i < parameterPack.textures().size(); ++i) { + for (size_t i = 0; i < parameterPack.textures().size(); ++i) { RHI_UNIMPLEMENTED; //* const ShaderParameterPack::NamedResource &namedTex = parameterPack.textures().at(i); //* // Given a Texture QNodeId, we retrieve the associated shared RHITexture |