aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/egl_impl.cpp
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2010-11-19 14:57:59 +0100
committerDan Gudmundsson <[email protected]>2010-11-19 16:13:05 +0100
commitabc92a6f3b4615e596992eda153da0c09a3c7cbf (patch)
tree48be474d24206c81f1bcd605427648225f1e5472 /lib/wx/c_src/egl_impl.cpp
parentb69da5dbf60e0062982c89524df97066b95ce816 (diff)
downloadotp-abc92a6f3b4615e596992eda153da0c09a3c7cbf.tar.gz
otp-abc92a6f3b4615e596992eda153da0c09a3c7cbf.tar.bz2
otp-abc92a6f3b4615e596992eda153da0c09a3c7cbf.zip
Fix non available opengl functions
Opengl functions are loaded at runtime and differ with drivers and cards.
Diffstat (limited to 'lib/wx/c_src/egl_impl.cpp')
-rw-r--r--lib/wx/c_src/egl_impl.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/wx/c_src/egl_impl.cpp b/lib/wx/c_src/egl_impl.cpp
index 87724f97dc..e2dbbb73c4 100644
--- a/lib/wx/c_src/egl_impl.cpp
+++ b/lib/wx/c_src/egl_impl.cpp
@@ -160,14 +160,8 @@ int load_gl_functions() {
}
void gl_error() {
- // int AP = 0; ErlDrvTermData rt[8];
- // rt[AP++] = ERL_DRV_ATOM; rt[AP++] = driver_mk_atom((char *)"_wxe_error_");
- // rt[AP++] = ERL_DRV_INT; rt[AP++] = (int) gl_error_op;
- // rt[AP++] = ERL_DRV_ATOM; rt[AP++] = driver_mk_atom((char *)"undef");
- // rt[AP++] = ERL_DRV_TUPLE; rt[AP++] = 3;
- // driver_send_term(WXE_DRV_PORT,gl_active,rt,AP);
- // BUGBUG
- fprintf(stderr, "OpenGL Extension not available : %d\r\n", gl_error_op);
+ // fprintf(stderr, "OpenGL Extension not available \r\n");
+ throw "undef_extension";
}
/* *******************************************************************************