aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/test/wx_opengl_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-10-24 13:04:15 +0200
committerDan Gudmundsson <[email protected]>2016-10-24 13:04:15 +0200
commit16b6c991cc841ced6be466eca774dba1188f8640 (patch)
tree9b2d82c4e7572e45d8962e69b5c07e8d7da82873 /lib/wx/test/wx_opengl_SUITE.erl
parentf66073c2960a4b072e18c4e1dfed143b94cd60c6 (diff)
parente92d0d0c4b6991dc751dcc332e11c05d304175b6 (diff)
downloadotp-16b6c991cc841ced6be466eca774dba1188f8640.tar.gz
otp-16b6c991cc841ced6be466eca774dba1188f8640.tar.bz2
otp-16b6c991cc841ced6be466eca774dba1188f8640.zip
Merge branch 'dgud/wx/scale-factor' into maint
* dgud/wx/scale-factor: wx: Improve error handling wx: Add wxWindow:getContentScaleFactor
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)]),