Changeset 51740 in webkit


Ignore:
Timestamp:
Dec 6, 2009 3:37:14 AM (14 years ago)
Author:
oliver@apple.com
Message:

texImage2D pixel junk for transparency
https://bugs.webkit.org/show_bug.cgi?id=32188

Reviewed by Maciej Stachowiak

Use kCGBlendModeCopy when drawing an image to the intermediate context
used to create a GL texture.

No test as we don't currently have any mechanism to retrieve pixel data
from the webgl context.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51734 r51740  
     12009-12-06  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        texImage2D pixel junk for transparency
     6        https://bugs.webkit.org/show_bug.cgi?id=32188
     7
     8        Use kCGBlendModeCopy when drawing an image to the intermediate context
     9        used to create a GL texture.
     10
     11        No test as we don't currently have any mechanism to retrieve pixel data
     12        from the webgl context.
     13
     14        * platform/graphics/mac/GraphicsContext3DMac.cpp:
     15        (WebCore::imageToTexture):
     16
    1172009-12-03  Philippe Normand  <pnormand@igalia.com>
    218
  • trunk/WebCore/platform/graphics/mac/GraphicsContext3DMac.cpp

    r51537 r51740  
    11331133    CGContextRef textureContext = CGBitmapContextCreate(textureData, textureWidth, textureHeight, 8, textureWidth * 4,
    11341134                                                        CGImageGetColorSpace(textureImage), kCGImageAlphaPremultipliedLast);
    1135    
     1135    CGContextSetBlendMode(textureContext, kCGBlendModeCopy);
    11361136    CGContextDrawImage(textureContext, CGRectMake(0, 0, (CGFloat)textureWidth, (CGFloat)textureHeight), textureImage);
    11371137    CGContextRelease(textureContext);
Note: See TracChangeset for help on using the changeset viewer.