aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/gen_util.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2010-11-15 15:24:58 +0100
committerDan Gudmundsson <[email protected]>2010-11-15 15:24:58 +0100
commit8ecbdaf5eb54052d7b4756037e6dc481a36358ed (patch)
tree3db1d8e9cf250003fa240ba33072d509edeab382 /lib/wx/api_gen/gen_util.erl
parent2e605129613ba88427de27520a19456903d40cca (diff)
downloadotp-8ecbdaf5eb54052d7b4756037e6dc481a36358ed.tar.gz
otp-8ecbdaf5eb54052d7b4756037e6dc481a36358ed.tar.bz2
otp-8ecbdaf5eb54052d7b4756037e6dc481a36358ed.zip
Initilize opengl after setCurrent
No rendering context is available until setCurrent is called the first time, opengl extensions can not be loaded before the rendering context is created.
Diffstat (limited to 'lib/wx/api_gen/gen_util.erl')
-rw-r--r--lib/wx/api_gen/gen_util.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wx/api_gen/gen_util.erl b/lib/wx/api_gen/gen_util.erl
index 841e0c9594..b53f817ce0 100644
--- a/lib/wx/api_gen/gen_util.erl
+++ b/lib/wx/api_gen/gen_util.erl
@@ -40,6 +40,10 @@ strip_name([H|R1],[H|R2]) ->
strip_name(R1,R2);
strip_name(String,[]) -> String.
+
+get_hook(_Type, undefined) -> ignore;
+get_hook(Type, List) -> proplists:get_value(Type, List, ignore).
+
open_write(File) ->
%% io:format("Generating ~s~n",[File]),
{ok, Fd} = file:open(File++".temp", [write]),