<?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>188342</bug_id>
          
          <creation_ts>2018-08-06 01:51:12 -0700</creation_ts>
          <short_desc>GLSL 1.0 shaders are not accepted by webgl 2.0 context</short_desc>
          <delta_ts>2018-08-06 12:18:28 -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>Safari Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</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="Ryan Oswald">ryanoswald</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1448086</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Oswald">ryanoswald</who>
    <bug_when>2018-08-06 01:51:12 -0700</bug_when>
    <thetext>Webgl 2.0 context seems to expect only GLSL 3.00 shaders, even when the #version 300 es is omitted. 

The webgl 2.0 spec clearly indicates that webgl 2.0 should support both GLSL 1.00 and GLSL 3.00 shaders. Although I cannot find it in the spec, the overwhelming consensus seems to be that 2.0 shaders are by default GLSL 1.0 unless the version directive is included. When provided a GLSL 1.00 shader, I get the following error:

WebGL: ERROR: 0:1: &quot; : #version required and missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1448192</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Oswald">ryanoswald</who>
    <bug_when>2018-08-06 12:18:18 -0700</bug_when>
    <thetext>This issue seems to be resolved in the latest nightly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>