d3d9: Avoid shift overflow in render_state_test_data_init.

Same patch as just a minute ago, alas fro d3d9 instead of d3d8.

Gerald
This commit is contained in:
Gerald Pfeifer 2015-09-07 23:09:50 +02:00 committed by Alexandre Julliard
parent 604c2c1da0
commit 601aa570f1
1 changed files with 1 additions and 1 deletions

View File

@ -1384,7 +1384,7 @@ static void render_state_test_data_init(struct render_state_data *data)
data->states[idx++] = TRUE; /* ALPHABLENDENABLE */
data->states[idx++] = TRUE; /* FOGENABLE */
data->states[idx++] = TRUE; /* SPECULARENABLE */
data->states[idx++] = 1 << 31; /* FOGCOLOR */
data->states[idx++] = 1u << 31; /* FOGCOLOR */
data->states[idx++] = D3DFOG_EXP; /* FOGTABLEMODE */
data->states[idx++] = to_dword(0.1f); /* FOGSTART */
data->states[idx++] = to_dword(0.8f); /* FOGEND */