<?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>126538</bug_id>
          
          <creation_ts>2014-01-06 14:03:47 -0800</creation_ts>
          <short_desc>[WebGL] FBO Depth Buffer Attachment Function Improperly Clearing With 0</short_desc>
          <delta_ts>2014-04-08 16:17:13 -0700</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>36248</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>p.szymanski3</cc>
    
    <cc>roger_fong</cc>
    
    <cc>tomeu</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>964748</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-06 14:03:47 -0800</bug_when>
    <thetext>The problem was introduced in 2010 under https://bugs.webkit.org/show_bug.cgi?id=36248.

The depth buffer should be initialized to 1.0f (rather than 0.0f) to match expected initialization behavior.  The current logic was setting the depth buffer to 1.0, blocking all drawing operations, unless an explicit &quot;gl.clear(gl.DEPTH_BUFFER_BIT)&quot; was being done immediately after attaching the depth FBO.
￼
Found by webgl/1.0.2/resources/webgl_test_files/conformance/renderbuffers/framebuffer-object-attachment.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964749</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-06 14:04:35 -0800</bug_when>
    <thetext>&lt;rdar://problem/15201336&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964751</commentid>
    <comment_count>2</comment_count>
      <attachid>220455</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-06 14:08:38 -0800</bug_when>
    <thetext>Created attachment 220455
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964765</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-06 14:39:55 -0800</bug_when>
    <thetext>Committed r161375: &lt;http://trac.webkit.org/changeset/161375&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965036</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-07 09:15:35 -0800</bug_when>
    <thetext>*** Bug 81290 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>966425</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-10 10:27:18 -0800</bug_when>
    <thetext>*** Bug 122264 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998866</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-08 16:17:13 -0700</bug_when>
    <thetext>*** Bug 94300 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>220455</attachid>
            <date>2014-01-06 14:08:38 -0800</date>
            <delta_ts>2014-01-06 14:10:05 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-126538-20140106140837.patch</filename>
            <type>text/plain</type>
            <size>1618</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2MTM3MSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE0LTAxLTA2ICBCcmVudCBG
dWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXZWJHTF0gRkJPIERlcHRo
IEJ1ZmZlciBBdHRhY2htZW50IEZ1bmN0aW9uIEltcHJvcGVybHkgQ2xlYXJpbmcgd2l0aCAwCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjY1MzgKKyAg
ICAgICAgPHJkYXI6Ly9wcm9ibGVtLzE1MjAxMzM2PgorCisgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgorCisgICAgICAgIFRlc3RlZCBieSB3ZWJnbC8xLjAuMi9yZXNvdXJjZXMv
d2ViZ2xfdGVzdF9maWxlcy9jb25mb3JtYW5jZS9yZW5kZXJidWZmZXJzL2ZyYW1lYnVmZmVyLW9i
amVjdC1hdHRhY2htZW50Lmh0bWwKKworICAgICAgICAqIGh0bWwvY2FudmFzL1dlYkdMRnJhbWVi
dWZmZXIuY3BwOgorICAgICAgICAoV2ViQ29yZTo6V2ViR0xGcmFtZWJ1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OkRFUFRIX1dSSVRFTUFTSywg
JmRlcHRoTWFzayk7Ci0gICAgICAgIGczZC0+Y2xlYXJEZXB0aCgwKTsKKyAgICAgICAgZzNkLT5j
bGVhckRlcHRoKDEuMGYpOwogICAgICAgICBnM2QtPmRlcHRoTWFzayh0cnVlKTsKICAgICB9CiAg
ICAgaWYgKGluaXRTdGVuY2lsKSB7Cg==
</data>
<flag name="review"
          id="244162"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>