summaryrefslogtreecommitdiff
path: root/tools/render-test/render-gl.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-06 13:15:26 -0700
committerGitHub <noreply@github.com>2017-07-06 13:15:26 -0700
commitaf8c0eae90c76d2c8f745badf6f743cefe15f777 (patch)
tree57632ee0f4b4944b311c0e50173fbeab0fe7d109 /tools/render-test/render-gl.cpp
parent21a14cb4e0d578bc4f8a460016269a1199cac0da (diff)
parent9795ed654e7b8daaff0bef1ccae1507ff659d3bd (diff)
Merge pull request #54 from tfoleyNV/falcor-fixes
Fix issues found during testing of v0.4.0 with Falcor
Diffstat (limited to 'tools/render-test/render-gl.cpp')
-rw-r--r--tools/render-test/render-gl.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/render-test/render-gl.cpp b/tools/render-test/render-gl.cpp
index d6166fc3c..f02ac36c4 100644
--- a/tools/render-test/render-gl.cpp
+++ b/tools/render-test/render-gl.cpp
@@ -297,7 +297,7 @@ public:
glAttr.streamIndex = 0;
glAttr.format = getVertexAttributeFormat(inputAttr.format);
- glAttr.offset = inputAttr.offset;
+ glAttr.offset = (GLsizei) inputAttr.offset;
}
return (InputLayout*)inputLayout;
@@ -388,7 +388,7 @@ public:
assert(!offsets || !offsets[ii]);
- glBindBufferBase(GL_UNIFORM_BUFFER, slot, bufferID);
+ glBindBufferBase(GL_UNIFORM_BUFFER, (GLuint) slot, bufferID);
}
}
@@ -405,18 +405,18 @@ public:
glBindBuffer(GL_ARRAY_BUFFER, boundVertexStreamBuffers[streamIndex]);
glVertexAttribPointer(
- ii,
- attr.format.componentCount,
+ (GLuint) ii,
+ attr.format.componentCount,
attr.format.componentType,
attr.format.normalized,
- boundVertexStreamStrides[streamIndex],
+ (GLsizei) boundVertexStreamStrides[streamIndex],
(GLvoid*)(attr.offset + boundVertexStreamOffsets[streamIndex]));
- glEnableVertexAttribArray(ii);
+ glEnableVertexAttribArray((GLuint)ii);
}
for (UInt ii = attrCount; ii < kMaxVertexStreams; ++ii)
{
- glDisableVertexAttribArray(ii);
+ glDisableVertexAttribArray((GLuint)ii);
}
}
@@ -424,7 +424,7 @@ public:
{
flushStateForDraw();
- glDrawArrays(boundPrimitiveTopology, startVertex, vertexCount);
+ glDrawArrays(boundPrimitiveTopology, (GLint) startVertex, (GLsizei) vertexCount);
}
// ShaderCompiler interface