Export the qt_gl_read_framebuffer function for use in declarative
authorGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 30 May 2011 13:33:21 +0000 (15:33 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Mon, 30 May 2011 16:32:55 +0000 (18:32 +0200)
Change-Id: Ia1dd186ca954774e1faaa4b2e606acac9333d9b0
Reviewed-on: http://codereview.qt.nokia.com/224
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/opengl/qgl.cpp
src/opengl/qglframebufferobject.cpp
src/opengl/qglpixelbuffer.cpp

index 61ccce1..f1fb2b4 100644 (file)
@@ -1795,7 +1795,7 @@ static void convertFromGLImage(QImage &img, int w, int h, bool alpha_format, boo
     img = img.mirrored();
 }
 
-QImage qt_gl_read_framebuffer(const QSize &size, bool alpha_format, bool include_alpha)
+Q_OPENGL_EXPORT QImage qt_gl_read_framebuffer(const QSize &size, bool alpha_format, bool include_alpha)
 {
     QImage img(size, (alpha_format && include_alpha) ? QImage::Format_ARGB32_Premultiplied
                                                      : QImage::Format_RGB32);
index 0af8108..682c262 100644 (file)
@@ -59,7 +59,7 @@
 
 QT_BEGIN_NAMESPACE
 
-extern QImage qt_gl_read_framebuffer(const QSize&, bool, bool);
+extern Q_OPENGL_EXPORT QImage qt_gl_read_framebuffer(const QSize&, bool, bool);
 
 #define QGL_FUNC_CONTEXT const QGLContext *ctx = d_ptr->fbo_guard.context();
 #define QGL_FUNCP_CONTEXT const QGLContext *ctx = fbo_guard.context();
index 3afb3b1..45e7cdd 100644 (file)
@@ -113,7 +113,7 @@ extern void qgl_cleanup_glyph_cache(QGLContext *);
 void qgl_cleanup_glyph_cache(QGLContext *) {}
 #endif
 
-extern QImage qt_gl_read_framebuffer(const QSize&, bool, bool);
+extern Q_OPENGL_EXPORT QImage qt_gl_read_framebuffer(const QSize&, bool, bool);
 
 
 QGLContext* QGLPBufferGLPaintDevice::context() const