Commit bb2f6d13 authored by Matthias Möller's avatar Matthias Möller
Browse files

qt5 fix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18692 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f868e67b
...@@ -2225,7 +2225,7 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo ...@@ -2225,7 +2225,7 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
QFramebufferObjectFormat tempFormat; QFramebufferObjectFormat tempFormat;
tempFormat.setInternalTextureFormat(GL_RGBA); tempFormat.setInternalTextureFormat(GL_RGBA);
tempFormat.setTextureTarget(GL_TEXTURE_2D); tempFormat.setTextureTarget(GL_TEXTURE_2D);
QGLFramebufferObject temp(w,h, tempFormat); QFramebufferObject temp(w,h, tempFormat);
if (format.samples() != 0) if (format.samples() != 0)
{ {
//cannot directly read from a multisampled framebuffer. //cannot directly read from a multisampled framebuffer.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment