summaryrefslogtreecommitdiffstats
path: root/Graphics
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-01 17:10:15 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-01 17:10:15 +0000
commita7b693ad04e85a5429a4e8f2e4e97ee8e2e930d0 (patch)
treef884731d49c19522dccf2202ac8f3949de6aec48 /Graphics
parentUpdated release history (diff)
downloadDiligentCore-a7b693ad04e85a5429a4e8f2e4e97ee8e2e930d0.tar.gz
DiligentCore-a7b693ad04e85a5429a4e8f2e4e97ee8e2e930d0.zip
Fixed compiler warnings
Diffstat (limited to 'Graphics')
-rw-r--r--Graphics/GraphicsEngine/include/RenderDeviceBase.hpp2
-rw-r--r--Graphics/GraphicsEngine/interface/BlendState.h2
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngine/include/RenderDeviceBase.hpp b/Graphics/GraphicsEngine/include/RenderDeviceBase.hpp
index d3ed96e7..49e54d12 100644
--- a/Graphics/GraphicsEngine/include/RenderDeviceBase.hpp
+++ b/Graphics/GraphicsEngine/include/RenderDeviceBase.hpp
@@ -127,7 +127,7 @@ struct hash<Diligent::BlendStateDesc>
size_t operator()(const Diligent::BlendStateDesc& BSDesc) const
{
std::size_t Seed = 0;
- for (int i = 0; i < Diligent::MAX_RENDER_TARGETS; ++i)
+ for (size_t i = 0; i < Diligent::MAX_RENDER_TARGETS; ++i)
{
const auto& rt = BSDesc.RenderTargets[i];
Diligent::HashCombine(Seed,
diff --git a/Graphics/GraphicsEngine/interface/BlendState.h b/Graphics/GraphicsEngine/interface/BlendState.h
index d1595411..2dd843ec 100644
--- a/Graphics/GraphicsEngine/interface/BlendState.h
+++ b/Graphics/GraphicsEngine/interface/BlendState.h
@@ -410,7 +410,7 @@ struct BlendStateDesc
bool operator==(const BlendStateDesc& RHS) const
{
bool bRTsEqual = true;
- for (int i = 0; i < MAX_RENDER_TARGETS; ++i)
+ for (size_t i = 0; i < MAX_RENDER_TARGETS; ++i)
{
if (!(RenderTargets[i] == RHS.RenderTargets[i]))
{
diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp
index 9980d69f..d4af6807 100644
--- a/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/GLContextState.cpp
@@ -665,7 +665,7 @@ void GLContextState::SetBlendState(const BlendStateDesc& BSDsc, Uint32 SampleMas
bool bEnableBlend = false;
if (BSDsc.IndependentBlendEnable)
{
- for (int i = 0; i < MAX_RENDER_TARGETS; ++i)
+ for (int i = 0; i < static_cast<int>(MAX_RENDER_TARGETS); ++i)
{
const auto& RT = BSDsc.RenderTargets[i];
if (RT.BlendEnable)
@@ -707,7 +707,7 @@ void GLContextState::SetBlendState(const BlendStateDesc& BSDsc, Uint32 SampleMas
if (BSDsc.IndependentBlendEnable)
{
- for (int i = 0; i < MAX_RENDER_TARGETS; ++i)
+ for (int i = 0; i < static_cast<int>(MAX_RENDER_TARGETS); ++i)
{
const auto& RT = BSDsc.RenderTargets[i];