aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_gl.h
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-05-20 12:53:44 +0200
committerDan Gudmundsson <[email protected]>2015-06-01 13:07:33 +0200
commit01c0f71f9e963b2c6fbc9417c8a414345d524609 (patch)
treedec0a9595b9ee827633ba7ea05af8a40526a2e9f /lib/wx/c_src/wxe_gl.h
parent7819974d320c8fdf4994a6b76a3ad2d686065a6b (diff)
downloadotp-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.h2
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);