debugz.
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Aug 2020 23:02:47 +0000 (01:02 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Aug 2020 07:38:43 +0000 (09:38 +0200)
src/wx/gl_video_view.cc

index 215511538ed013a0cc076a14d0a14a22c16fdddc..6f549f3794fca5f9d8b69c0bbe31364663367dc5 100644 (file)
@@ -72,6 +72,7 @@ GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
        , _one_shot (false)
 {
        _canvas = new wxGLCanvas (parent, wxID_ANY, 0, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE);
+       check_gl_error ("wxGLCanvas constructor");
        _canvas->Bind (wxEVT_PAINT, boost::bind(&GLVideoView::update, this));
        _canvas->Bind (wxEVT_SIZE, boost::bind(boost::ref(Sized)));
        _canvas->Bind (wxEVT_CREATE, boost::bind(&GLVideoView::create, this));
@@ -108,6 +109,7 @@ GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
        _vsync_enabled = true;
 #endif
 
+       check_gl_error ("pre-glGenTextures");
        glGenTextures (1, &_id);
        check_gl_error ("glGenTextures");
        glBindTexture (GL_TEXTURE_2D, _id);