diff options
author | Dan Gudmundsson <[email protected]> | 2015-05-20 12:53:44 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-06-01 13:07:33 +0200 |
commit | 01c0f71f9e963b2c6fbc9417c8a414345d524609 (patch) | |
tree | dec0a9595b9ee827633ba7ea05af8a40526a2e9f /lib/wx/c_src/wxe_gl.h | |
parent | 7819974d320c8fdf4994a6b76a3ad2d686065a6b (diff) | |
download | otp-01c0f71f9e963b2c6fbc9417c8a414345d524609.tar.gz otp-01c0f71f9e963b2c6fbc9417c8a414345d524609.tar.bz2 otp-01c0f71f9e963b2c6fbc9417c8a414345d524609.zip |
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.
Diffstat (limited to 'lib/wx/c_src/wxe_gl.h')
-rw-r--r-- | lib/wx/c_src/wxe_gl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_gl.h b/lib/wx/c_src/wxe_gl.h index dc117bf610..f64c20f25a 100644 --- a/lib/wx/c_src/wxe_gl.h +++ b/lib/wx/c_src/wxe_gl.h @@ -26,7 +26,7 @@ void activateGL(ErlDrvTermData caller); void setActiveGL(ErlDrvTermData caller, wxGLCanvas *canvas); void deleteActiveGL(wxGLCanvas *canvas); -void wxe_initOpenGL(wxeReturn, char*); +void wxe_initOpenGL(wxeReturn *, char*); void gl_dispatch(int op, char *bp, ErlDrvTermData caller, WXEBinRef *bins[]); WX_DECLARE_HASH_MAP(ErlDrvTermData, wxGLCanvas*, wxIntegerHash, wxIntegerEqual, wxeGLC); |