From 96d77b1289c8e535e97154bae4561d0e589c7f22 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 8 May 2019 23:20:40 +0100 Subject: More hackz. --- src/tools/dcpomatic.cc | 2 +- src/wx/gl_view.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index f6427e68e..35d5a8679 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -278,7 +278,7 @@ public: setvbuf(hf_in, NULL, _IONBF, 128); *stdin = *hf_in; - cout << "DCP-o-matic is starting." << "\n"; + cout << "DCP-o-matic is starting (in GL land)." << "\n"; } #endif diff --git a/src/wx/gl_view.cc b/src/wx/gl_view.cc index 5159da366..07ee69386 100644 --- a/src/wx/gl_view.cc +++ b/src/wx/gl_view.cc @@ -44,8 +44,6 @@ GLView::GLView (wxWindow *parent) glGenTextures (1, &_id); glBindTexture (GL_TEXTURE_2D, _id); glPixelStorei (GL_UNPACK_ALIGNMENT, 1); - - cout << glGetString (GL_VERSION) << "\n"; } GLView::~GLView () @@ -123,6 +121,8 @@ GLView::paint (wxPaintEvent &) void GLView::set_image (shared_ptr image) { + cout << glGetString (GL_VERSION) << "\n"; + DCPOMATIC_ASSERT (image->pixel_format() == AV_PIX_FMT_RGB24); DCPOMATIC_ASSERT (!image->aligned()); -- cgit v1.2.3