Changeset 82722 in vbox
- Timestamp:
- Jan 12, 2020 9:02:01 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics/shaderlib
- Files:
-
- 2 edited
-
shader_sm1.c (modified) (5 diffs)
-
shader_sm4.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm1.c
r82718 r82722 214 214 struct wined3d_shader_version shader_version; 215 215 const DWORD *end; 216 DWORD tokens_num; 216 217 const struct wined3d_sm1_opcode_info *opcode_table; 217 218 }; … … 539 540 } 540 541 541 priv->end = byte_code + tokens_num; 542 priv->end = NULL; 543 priv->tokens_num = tokens_num; 542 544 543 545 if (output_signature) … … 576 578 struct wined3d_sm1_data *priv = data; 577 579 DWORD version_token; 580 581 priv->end = *ptr + priv->tokens_num; 578 582 579 583 version_token = *(*ptr)++; … … 679 683 struct wined3d_sm1_data *priv = data; 680 684 681 if (*ptr >= priv->end)682 {683 return TRUE;684 }685 686 685 if (**ptr == WINED3DSP_END) 687 686 { … … 689 688 return TRUE; 690 689 } 690 691 AssertMsgReturn(*ptr < priv->end, ("End-of-bytecode token is missing"), TRUE); 691 692 692 693 return FALSE; -
trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm4.c
r82718 r82722 101 101 struct wined3d_shader_version shader_version; 102 102 const DWORD *end; 103 DWORD tokens_num; 103 104 const struct wined3d_shader_signature *output_signature; 104 105 }; … … 238 239 } 239 240 240 priv->end = byte_code + tokens_num; 241 priv->end = NULL; 242 priv->tokens_num = tokens_num; 241 243 priv->output_signature = output_signature; 242 244
Note:
See TracChangeset
for help on using the changeset viewer.

