Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Type-QtWidget
Commits
0a0b7e73
Commit
0a0b7e73
authored
Mar 07, 2018
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use image conversion wrapper
parent
755b04d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ObjectTypes/QtWidget/QtWidgetNode.cc
ObjectTypes/QtWidget/QtWidgetNode.cc
+2
-1
No files found.
ObjectTypes/QtWidget/QtWidgetNode.cc
View file @
0a0b7e73
...
...
@@ -50,6 +50,7 @@
#include <ACG/GL/acg_glew.hh>
#include "QtWidgetNode.hh"
#include <ACG/Geometry/Types/PlaneT.hh>
#include <ACG/Utils/ImageConversion.hh>
#include <QApplication>
...
...
@@ -233,7 +234,7 @@ void QtWidgetNode::createTexture()
widget_
->
installEventFilter
(
ef_
);
QImage
image
=
pix
.
toImage
();
image
=
QGLWidget
::
convertToGLFormat
(
image
);
image
=
ACG
::
Util
::
convertToGLFormat
(
image
);
//
QGLWidget::convertToGLFormat( image );
// generate texture
if
(
!
texID_
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment