diff options
author | Dan Gudmundsson <[email protected]> | 2010-10-22 15:45:28 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2010-11-15 10:13:07 +0100 |
commit | 2e605129613ba88427de27520a19456903d40cca (patch) | |
tree | 4c3c1caf3e7d32200ab0d3fcc58cd124ffde11f1 /lib/wx/c_src/wxe_gl.cpp | |
parent | 029429cae951a9896d544eb7693fd130e4abc979 (diff) | |
download | otp-2e605129613ba88427de27520a19456903d40cca.tar.gz otp-2e605129613ba88427de27520a19456903d40cca.tar.bz2 otp-2e605129613ba88427de27520a19456903d40cca.zip |
Update to OpenGL 4.1
Diffstat (limited to 'lib/wx/c_src/wxe_gl.cpp')
-rw-r--r-- | lib/wx/c_src/wxe_gl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/wx/c_src/wxe_gl.cpp b/lib/wx/c_src/wxe_gl.cpp index f1fc848de9..e947a1bc6e 100644 --- a/lib/wx/c_src/wxe_gl.cpp +++ b/lib/wx/c_src/wxe_gl.cpp @@ -35,7 +35,7 @@ int erl_gl_initiated = FALSE; ErlDrvTermData gl_active = 0; wxeGLC glc; -typedef void (*WXE_GL_DISPATCH) (int, char *, ErlDrvPort, ErlDrvTermData, char **); +typedef void (*WXE_GL_DISPATCH) (int, char *, ErlDrvPort, ErlDrvTermData, char **, int *); WXE_GL_DISPATCH wxe_gl_dispatch; #ifdef _WIN32 @@ -146,12 +146,15 @@ void gl_dispatch(int op, char *bp,ErlDrvTermData caller,WXEBinRef *bins[]){ } }; char * bs[3]; + int bs_sz[3]; for(int i=0; i<3; i++) { - if(bins[i]) + if(bins[i]) { bs[i] = bins[i]->base; + bs_sz[i] = bins[i]->size; + } else bs[i] = NULL; } - wxe_gl_dispatch(op, bp, WXE_DRV_PORT, caller, bs); + wxe_gl_dispatch(op, bp, WXE_DRV_PORT, caller, bs, bs_sz); } |