From 01c0f71f9e963b2c6fbc9417c8a414345d524609 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 20 May 2015 12:53:44 +0200 Subject: wx: Optimize event and return value construction Preallocated an rt array of 64 items (which covers 99%) of the calls and thus avoids allocation and copying in most cases. --- lib/wx/c_src/gen/wxe_funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/wx/c_src/gen/wxe_funcs.cpp') diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index dca0f74dcd..2f52308f69 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -66,7 +66,7 @@ void WxeApp::wxe_dispatch(wxeCommand& Ecmd) driver_binary_dec_refc(Ecmd.bin[0]->bin); break; case WXE_INIT_OPENGL: - wxe_initOpenGL(rt, bp); + wxe_initOpenGL(&rt, bp); break; case 100: { // wxEvtHandler::Connect -- cgit v1.2.3