<?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>45908</bug_id>
          
          <creation_ts>2010-09-16 11:07:28 -0700</creation_ts>
          <short_desc>Must enable GL_POINT_SPRITE in GraphicsContext3D implementations</short_desc>
          <delta_ts>2010-10-27 14:04:46 -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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Zhenyao Mo">zmo</assigned_to>
          <cc>abarth</cc>
    
    <cc>cmarrin</cc>
    
    <cc>danceoffwithyourpantsoff</cc>
    
    <cc>enne</cc>
    
    <cc>eric</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zmo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>280215</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-09-16 11:07:28 -0700</bug_when>
    <thetext>In order to properly support the gl_PointCoord built-in variable in fragment shaders, it is necessary for the various GraphicsContext3D implementations running on desktop GL to enable the GL_POINT_SPRITE capability. This is similar to the earlier requirement to enable the GL_VERTEX_PROGRAM_POINT_SIZE capability.

Note that testing this in WebKit requires ANGLE issue http://code.google.com/p/angleproject/issues/detail?id=35 to be fixed and the version of ANGLE in WebKit to be updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296711</commentid>
    <comment_count>1</comment_count>
    <who name="danceoffwithyourpantsoff">danceoffwithyourpantsoff</who>
    <bug_when>2010-10-20 02:31:09 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; In order to properly support the gl_PointCoord built-in variable in fragment shaders, it is necessary for the various GraphicsContext3D implementations running on desktop GL to enable the GL_POINT_SPRITE capability. This is similar to the earlier requirement to enable the GL_VERTEX_PROGRAM_POINT_SIZE capability.
&gt; 
&gt; Note that testing this in WebKit requires ANGLE issue http://code.google.com/p/angleproject/issues/detail?id=35 to be fixed and the version of ANGLE in WebKit to be updated.

This was recently fixed in ANGLE and rolled into Chromium, and gl_PointCoord is working now.

However, shaders that use gl_PointCoord still fail to compile in non-chromium WebKit / Safari.

Relevant:

http://code.google.com/p/chromium/issues/detail?id=59763
http://code.google.com/p/angleproject/source/detail?r=448
http://src.chromium.org/viewvc/chrome?view=rev&amp;revision=63084</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296858</commentid>
    <comment_count>2</comment_count>
    <who name="Zhenyao Mo">zmo</who>
    <bug_when>2010-10-20 10:25:03 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; In order to properly support the gl_PointCoord built-in variable in fragment shaders, it is necessary for the various GraphicsContext3D implementations running on desktop GL to enable the GL_POINT_SPRITE capability. This is similar to the earlier requirement to enable the GL_VERTEX_PROGRAM_POINT_SIZE capability.
&gt; &gt; 
&gt; &gt; Note that testing this in WebKit requires ANGLE issue http://code.google.com/p/angleproject/issues/detail?id=35 to be fixed and the version of ANGLE in WebKit to be updated.
&gt; 
&gt; This was recently fixed in ANGLE and rolled into Chromium, and gl_PointCoord is working now.
&gt; 
&gt; However, shaders that use gl_PointCoord still fail to compile in non-chromium WebKit / Safari.
&gt; 
&gt; Relevant:
&gt; 
&gt; http://code.google.com/p/chromium/issues/detail?id=59763
&gt; http://code.google.com/p/angleproject/source/detail?r=448
&gt; http://src.chromium.org/viewvc/chrome?view=rev&amp;revision=63084

That&apos;s because they are still using an older version of ANGLE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298051</commentid>
    <comment_count>3</comment_count>
      <attachid>71574</attachid>
    <who name="Zhenyao Mo">zmo</who>
    <bug_when>2010-10-22 10:36:40 -0700</bug_when>
    <thetext>Created attachment 71574
patch

Mac port still needs to roll ANGLE for gl_pointCoord to work</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>299235</commentid>
    <comment_count>4</comment_count>
      <attachid>71574</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-10-25 19:08:39 -0700</bug_when>
    <thetext>Comment on attachment 71574
patch

OK, but see https://bugs.webkit.org/show_bug.cgi?id=48282 ; this only adds code which will need to be fixed later under that bug. Minimally, add a comment to that bug about this new code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300342</commentid>
    <comment_count>5</comment_count>
      <attachid>71574</attachid>
    <who name="Zhenyao Mo">zmo</who>
    <bug_when>2010-10-27 10:24:57 -0700</bug_when>
    <thetext>Comment on attachment 71574
patch

Clearing flags on attachment: 71574

Committed r70666: &lt;http://trac.webkit.org/changeset/70666&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300343</commentid>
    <comment_count>6</comment_count>
    <who name="Zhenyao Mo">zmo</who>
    <bug_when>2010-10-27 10:25:02 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>300548</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-10-27 14:04:46 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/70666 might have broken GTK Linux 32-bit Debug</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71574</attachid>
            <date>2010-10-22 10:36:40 -0700</date>
            <delta_ts>2010-10-27 10:24:57 -0700</delta_ts>
            <desc>patch</desc>
            <filename>sprite.patch</filename>
            <type>text/plain</type>
            <size>2345</size>
            <attacher name="Zhenyao Mo">zmo</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA3MDMxNikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTMgQEAKKzIwMTAtMTAtMjIgIFpIZW55YW8gTW8gIDx6bW9AZ29vZ2xlLmNvbT4K
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBNdXN0IGVu
YWJsZSBHTF9QT0lOVF9TUFJJVEUgaW4gR3JhcGhpY3NDb250ZXh0M0QgaW1wbGVtZW50YXRpb25z
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD00NTkwOAor
CisgICAgICAgICogcGxhdGZvcm0vZ3JhcGhpY3MvbWFjL0dyYXBoaWNzQ29udGV4dDNETWFjLm1t
OiBFbmFibGUgZm9yIE1hYyBwb3J0LgorICAgICAgICAoV2ViQ29yZTo6R3JhcGhpY3NDb250ZXh0
M0Q6OkdyYXBoaWNzQ29udGV4dDNEKToKKwogMjAxMC0xMC0yMiAgUGF0cmljayBHYW5zdGVyZXIg
IDxwYXJvZ2FAd2Via2l0Lm9yZz4KIAogICAgICAgICBSZXZpZXdlZCBieSBBZGFtIFJvYmVuLgpJ
bmRleDogV2ViQ29yZS9wbGF0Zm9ybS9ncmFwaGljcy9tYWMvR3JhcGhpY3NDb250ZXh0M0RNYWMu
b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XBp
bGVycygpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>