return;
const BitmapTextureGL& textureGL = static_cast<const BitmapTextureGL&>(texture);
+#if PLATFORM(WAYLAND) && ENABLE(TIZEN_EMULATOR)
+ int flip = (dynamic_cast<const PlatformSurfaceTexture*>(&texture) == NULL) ? ShouldFlipTexture : 0;
+#else
+ int flip = 0;
+#endif
#if ENABLE(TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
- drawTexture(textureGL.id(), textureGL.isOpaque() ? 0 : SupportsBlending, textureGL.size(), targetRect, matrix, opacity, textureGL.size(), true, exposedEdges);
+ drawTexture(textureGL.id(), (textureGL.isOpaque() ? 0 : SupportsBlending) | flip, textureGL.size(), targetRect, matrix, opacity, textureGL.size(), true, exposedEdges);
#else
- drawTexture(textureGL.id(), textureGL.isOpaque() ? 0 : SupportsBlending, textureGL.size(), targetRect, matrix, opacity, exposedEdges);
+ drawTexture(textureGL.id(), (textureGL.isOpaque() ? 0 : SupportsBlending) | flip, textureGL.size(), targetRect, matrix, opacity, exposedEdges);
#endif
}