aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_opengl_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-10-14 16:00:40 +0200
committerDan Gudmundsson <[email protected]>2016-10-17 11:56:49 +0200
commite92d0d0c4b6991dc751dcc332e11c05d304175b6 (patch)
treedfc84ed6784211ce212a72d0ce98e6e4515687e5 /lib/wx/test/wx_opengl_SUITE.erl
parent301675fb9ab76c5003743d1eb0ecd8a265c697f9 (diff)
downloadotp-e92d0d0c4b6991dc751dcc332e11c05d304175b6.tar.gz
otp-e92d0d0c4b6991dc751dcc332e11c05d304175b6.tar.bz2
otp-e92d0d0c4b6991dc751dcc332e11c05d304175b6.zip
wx: Improve error handling
Fix error handling in gl as in wx.
Diffstat (limited to 'lib/wx/test/wx_opengl_SUITE.erl')
-rw-r--r--lib/wx/test/wx_opengl_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/wx/test/wx_opengl_SUITE.erl b/lib/wx/test/wx_opengl_SUITE.erl
index 643a0df6a3..3de9209fae 100644
--- a/lib/wx/test/wx_opengl_SUITE.erl
+++ b/lib/wx/test/wx_opengl_SUITE.erl
@@ -111,6 +111,8 @@ canvas(Config) ->
?m(false, wx:is_null(wxGLCanvas:getContext(Canvas))),
?m({'EXIT', {{error, no_gl_context,_},_}}, gl:getString(?GL_VENDOR)),
+ gl:viewport(0,0,50,50), %% Show cause an error report
+
?m(ok, wxGLCanvas:setCurrent(Canvas)),
io:format("Vendor: ~s~n", [gl:getString(?GL_VENDOR)]),