aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-02-24 15:45:35 +0100
committerDan Gudmundsson <[email protected]>2016-02-29 09:19:45 +0100
commit7220c5982d688ba5b6a647e41b973c5eb46f0020 (patch)
tree94091b8fe882207d399637ea805ddf443cb9abd4 /lib/wx/c_src
parenta5d1c7b8fc58a8dff36d8f72df22e2c372610799 (diff)
downloadotp-7220c5982d688ba5b6a647e41b973c5eb46f0020.tar.gz
otp-7220c5982d688ba5b6a647e41b973c5eb46f0020.tar.bz2
otp-7220c5982d688ba5b6a647e41b973c5eb46f0020.zip
wx: Tiny optimization
Set context to avoid future lookups
Diffstat (limited to 'lib/wx/c_src')
-rw-r--r--lib/wx/c_src/wxe_gl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_gl.cpp b/lib/wx/c_src/wxe_gl.cpp
index 5126804b9f..7f2e767a6b 100644
--- a/lib/wx/c_src/wxe_gl.cpp
+++ b/lib/wx/c_src/wxe_gl.cpp
@@ -138,9 +138,9 @@ void gl_dispatch(int op, char *bp,ErlDrvTermData caller,WXEBinRef *bins){
wxGLCanvas * current = glc[caller];
if(current) {
if(current != glc[gl_active]) {
- gl_active = caller;
current->SetCurrent();
}
+ gl_active = caller;
} else {
ErlDrvTermData rt[] = // Error msg
{ERL_DRV_ATOM, driver_mk_atom((char *) "_egl_error_"),