<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>53269</bug_id>
          
          <creation_ts>2011-01-27 17:06:52 -0800</creation_ts>
          <short_desc>http://www.webglearth.com/ is grayscale in Safari, color in Firefox</short_desc>
          <delta_ts>2011-01-28 18:09:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>47477</dup_id>
          
          <bug_file_loc>http://www.webglearth.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>abarth</cc>
    
    <cc>cmarrin</cc>
    
    <cc>kbr</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zmo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>341141</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-27 17:06:52 -0800</bug_when>
    <thetext>http://www.webglearth.com/ is grayscale on Mac, in WebKit. In Firefox it&apos;s in color. This seems like a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341184</commentid>
    <comment_count>1</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-01-27 17:49:22 -0800</bug_when>
    <thetext>That&apos;s strange. It probably has something to do with which image loaders are being used. It appears in color in Chromium and grayscale in Safari. I&apos;ll take a closer look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341255</commentid>
    <comment_count>2</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-01-27 19:21:54 -0800</bug_when>
    <thetext>The CGImageRef coming back from ImageSource::createFrameAtIndex (ImageSourceCG.cpp) thinks that it&apos;s 8 bits per pixel. I&apos;m stumped so far why this is happening only for the images on this site. Most WebGL content using textures (including PNG textures like this site) displays properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341264</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-01-27 19:47:19 -0800</bug_when>
    <thetext>The issue is that the PNGs loaded by this application are indexed, and the CG image loading path for WebGL doesn&apos;t handle them properly. See https://bugs.webkit.org/show_bug.cgi?id=47477 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341887</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2011-01-28 17:23:21 -0800</bug_when>
    <thetext>So then shouldn&apos;t this be marked a dup of that? Or is there more to it than just handling indexed PNG correctly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341909</commentid>
    <comment_count>5</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-01-28 18:00:10 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; So then shouldn&apos;t this be marked a dup of that? Or is there more to it than just handling indexed PNG correctly?

I&apos;ll close it as a dup shortly. Patch forthcoming for the other bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>341914</commentid>
    <comment_count>6</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-01-28 18:09:00 -0800</bug_when>
    <thetext>The patch for https://bugs.webkit.org/show_bug.cgi?id=47477 , which is currently out for review, fixes this problem.

*** This bug has been marked as a duplicate of bug 47477 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>