[PATCH 1/5] wined3d: Also read comments in shader_sm1_is_end().
Henri Verbeet
hverbeet at codeweavers.com
Sun Oct 21 13:20:36 CDT 2012
In case there's a comment after the last actual instruction in the shader.
---
dlls/wined3d/shader_sm1.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/shader_sm1.c b/dlls/wined3d/shader_sm1.c
index 18885f5..6ad1777 100644
--- a/dlls/wined3d/shader_sm1.c
+++ b/dlls/wined3d/shader_sm1.c
@@ -754,6 +754,8 @@ static void shader_sm1_read_instruction(void *data, const DWORD **ptr, struct wi
static BOOL shader_sm1_is_end(void *data, const DWORD **ptr)
{
+ shader_sm1_read_comment(ptr);
+
if (**ptr == WINED3DSP_END)
{
++(*ptr);
--
1.7.8.6
More information about the wine-patches
mailing list