2012-04-28 No'am Rosenthal <noam.rosenthal@nokia.com>
+ [Qt][Texmap] Error of cross-compiling webkit with Qt 4.8.1
+ https://bugs.webkit.org/show_bug.cgi?id=84321
+
+ Speculative build-fix for Qt 4.8.
+ Use QGLContext for Qt 4.x instead of the platform-specific context.
+
+ Reviewed by Simon Hausmann.
+
+ No new tests, build fix.
+
+ * platform/graphics/texmap/TextureMapperGL.cpp:
+ (SharedGLData):
+ (WebCore::TextureMapperGLData::SharedGLData::getCurrentGLContext):
+
+2012-04-28 No'am Rosenthal <noam.rosenthal@nokia.com>
+
[Texmap] Falling leaves demo missing opacity fade out animation
https://bugs.webkit.org/show_bug.cgi?id=83691
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
-#if PLATFORM(QT) && QT_VERSION >= 0x050000
+#if PLATFORM(QT)
+#if QT_VERSION >= 0x050000
#include <QOpenGLContext>
#include <QPlatformPixmap>
-#endif
-
-#if OS(WINDOWS)
+#else
+#include <QGLContext>
+#endif // QT_VERSION
+#elif OS(WINDOWS)
#include <windows.h>
#elif OS(MAC_OS_X)
#include <AGL/agl.h>
#endif
#define GL_CMD(...) do { __VA_ARGS__; ASSERT_ARG(__VA_ARGS__, !glGetError()); } while (0)
-
namespace WebCore {
struct TextureMapperGLData {
struct SharedGLData : public RefCounted<SharedGLData> {
-#if PLATFORM(QT) && QT_VERSION >= 0x050000
+#if PLATFORM(QT)
+#if QT_VERSION >= 0x050000
typedef QOpenGLContext* GLContext;
static GLContext getCurrentGLContext()
{
return QOpenGLContext::currentContext();
}
+#else
+ typedef const QGLContext* GLContext;
+ static GLContext getCurrentGLContext()
+ {
+ return QGLContext::currentContext();
+ }
+#endif
#elif OS(WINDOWS)
typedef HGLRC GLContext;
static GLContext getCurrentGLContext()