texImage2D pixel junk for transparency
[WebKit-https.git] / WebCore / platform / graphics / mac / GraphicsContext3DMac.cpp
index 39e5336ca2465c3737ceb10170371b9e6b3819b3..071e2d0b1b3e7ab1295ed47f2da8235a27422e53 100644 (file)
@@ -1132,7 +1132,7 @@ static void imageToTexture(Image* image, unsigned target, unsigned level)
         
     CGContextRef textureContext = CGBitmapContextCreate(textureData, textureWidth, textureHeight, 8, textureWidth * 4, 
                                                         CGImageGetColorSpace(textureImage), kCGImageAlphaPremultipliedLast);
-    
+    CGContextSetBlendMode(textureContext, kCGBlendModeCopy);
     CGContextDrawImage(textureContext, CGRectMake(0, 0, (CGFloat)textureWidth, (CGFloat)textureHeight), textureImage);
     CGContextRelease(textureContext);