- fixed two potentially dangerous compilation warnings

src/hwrenderer/dynlights/hw_lightbuffer.h:51:29: warning: comparison between signed and unsigned integer expressions
[-Wsign-compare]
src/hwrenderer/scene/hw_renderstate.h:196:44: warning: operation on '((FRenderState*)this)->FRenderState::mVertexOffsets[0]' may
be undefined [-Wsequence-point]
This commit is contained in:
alexey.lysiuk 2018-11-01 12:51:22 +02:00
parent b9f2cce8de
commit 504a7f00b6
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public:
}
// Only relevant for OpenGL, so this does not need access to the render state.
int BindUBO(unsigned int index)
int BindUBO(int index)
{
if (!mBufferType && index > -1)
{

View File

@ -193,7 +193,7 @@ public:
mBias.Reset();
mVertexBuffer = nullptr;
mVertexOffsets[0] = mVertexOffsets[0] = 0;
mVertexOffsets[0] = mVertexOffsets[1] = 0;
mIndexBuffer = nullptr;
mColor.Set(1.0f, 1.0f, 1.0f, 1.0f);