mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- 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:
parent
b9f2cce8de
commit
504a7f00b6
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue