Commit 41809d58 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

d3dx9_36: Fixed off by 1 in the usage_idx check (Coverity).

parent 0ff9d8c2
......@@ -435,7 +435,7 @@ static HRESULT vs_find_builtin_varyings(struct bc_writer *This, const struct bwr
break;
case BWRITERDECLUSAGE_TEXCOORD:
if(usage_idx > 8) {
if(usage_idx >= 8) {
WARN("dcl_color%u not supported in sm 1/2 shaders\n", usage_idx);
return E_INVALIDARG;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment