Commit 1f876a67 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Don't raise a warning for an uninitialized uniform.

parent 71da1bac
...@@ -605,7 +605,7 @@ static struct list *declare_vars(struct hlsl_type *basic_type, DWORD modifiers, ...@@ -605,7 +605,7 @@ static struct list *declare_vars(struct hlsl_type *basic_type, DWORD modifiers,
local = FALSE; local = FALSE;
} }
if (var->modifiers & HLSL_MODIFIER_CONST && !v->initializer) if (var->modifiers & HLSL_MODIFIER_CONST && !(var->modifiers & HLSL_STORAGE_UNIFORM) && !v->initializer)
{ {
hlsl_report_message(v->loc.file, v->loc.line, v->loc.col, hlsl_report_message(v->loc.file, v->loc.line, v->loc.col,
HLSL_LEVEL_ERROR, "const variable without initializer"); HLSL_LEVEL_ERROR, "const variable without initializer");
......
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