summaryrefslogtreecommitdiffstats
path: root/tools/render-test/render-test-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/render-test-main.cpp')
-rw-r--r--tools/render-test/render-test-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp
index aa0a60829..1e3caf781 100644
--- a/tools/render-test/render-test-main.cpp
+++ b/tools/render-test/render-test-main.cpp
@@ -293,7 +293,7 @@ struct AssignValsFromLayoutContext
if(field.name.getLength() == 0)
{
// If no name was given, assume by-indexing matching is requested
- auto fieldCursor = dstCursor.getElement(fieldIndex);
+ auto fieldCursor = dstCursor.getElement((GfxIndex)fieldIndex);
if(!fieldCursor.isValid())
{
StdWriters::getError().print("error: could not find shader parameter at index %d\n", (int)fieldIndex);