aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/gl_gen_c.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-11-22 09:40:00 +0100
committerDan Gudmundsson <[email protected]>2016-11-22 09:41:31 +0100
commit4b6b406a75116f651213a307f6873940d35b5199 (patch)
tree3907a66a533bf3aa91348d5aaad2c1133489bd80 /lib/wx/api_gen/gl_gen_c.erl
parent4683b5c227a238ee27f658bdfe2981c4b69acf09 (diff)
downloadotp-4b6b406a75116f651213a307f6873940d35b5199.tar.gz
otp-4b6b406a75116f651213a307f6873940d35b5199.tar.bz2
otp-4b6b406a75116f651213a307f6873940d35b5199.zip
Fix gl driver pointer error
For lists the pointer was not advanced as it should which caused following in-data (if any) to be wrong.
Diffstat (limited to 'lib/wx/api_gen/gl_gen_c.erl')
-rw-r--r--lib/wx/api_gen/gl_gen_c.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/api_gen/gl_gen_c.erl b/lib/wx/api_gen/gl_gen_c.erl
index c6d4f3a520..2edad9c4e2 100644
--- a/lib/wx/api_gen/gl_gen_c.erl
+++ b/lib/wx/api_gen/gl_gen_c.erl
@@ -217,7 +217,7 @@ decode_arg(P=#arg{name=Name,type=#type{size=Sz,single=list,name=Type}},A0) ->
A = align(max([Sz,4]),A0),
w(" int * ~sLen = (int *) bp; bp += ~p;~n", [Name, max([4,Sz])]),
w(" ~s * ~s = (~s *) bp; ", [Type,Name,Type]),
- w(" bp += (8-((*~sLen*~p+~p)%8))%8;~n", [Name,Sz,A]),
+ w(" bp += *~sLen*~p + (8-((*~sLen*~p+~p)%8))%8;~n", [Name,Sz,Name,Sz,A]),
{P, 0};
decode_arg(P=#arg{name=Name,type=#type{size=TSz,name=Type,single={tuple,undefined}}},A0) ->
A = align(TSz,A0),