diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-06 22:03:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-06 22:03:58 +0100 |
| commit | fdd2fb8c85b12a1db669b480da5f6ffb013ab100 (patch) | |
| tree | b4d5bb2171bb4c74f77a00cb7cf864a279f44570 | |
| parent | d571b590ef68b4586f4cd728e27eb0d3207f2a74 (diff) | |
Hackz.
| -rw-r--r-- | src/wx/gl_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/gl_view.cc b/src/wx/gl_view.cc index 9e79f9e25..928e6c0ff 100644 --- a/src/wx/gl_view.cc +++ b/src/wx/gl_view.cc @@ -125,7 +125,9 @@ GLView::set_image (shared_ptr<const Image> image) DCPOMATIC_ASSERT (!image->aligned()); _size = image->size (); - glTexImage2D (GL_TEXTURE_2D, 0, GL_RGB8, image->size().width, image->size().height, 0, GL_RGB, GL_UNSIGNED_BYTE, image->data()[0]); + cout << "Here we go with " << _size.width << "x" << _size.height << "\n"; + glPixelStorei (GL_UNPACK_ALIGNMENT, 1); + glTexImage2D (GL_TEXTURE_2D, 0, GL_RGB8, _size.width, _size.height, 0, GL_RGB, GL_UNSIGNED_BYTE, image->data()[0]); check_gl_error ("glTexImage2D"); glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); |
