wined3d: The first shader token should be the version token.
This commit is contained in:
parent
2dcfdd5b55
commit
e63bd2ce21
|
@ -911,17 +911,16 @@ void shader_generate_main(IWineD3DBaseShader *iface, SHADER_BUFFER* buffer,
|
|||
ins.src = src_param;
|
||||
This->baseShader.parse_state.current_row = 0;
|
||||
|
||||
if (!shader_is_version_token(*pToken++))
|
||||
{
|
||||
ERR("First token is not a version token, invalid shader.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
while (WINED3DPS_END() != *pToken)
|
||||
{
|
||||
DWORD opcode_token;
|
||||
|
||||
/* Skip version token */
|
||||
if (shader_is_version_token(*pToken))
|
||||
{
|
||||
++pToken;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Skip comment tokens */
|
||||
if (shader_is_comment(*pToken))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue