Bug 188342 - GLSL 1.0 shaders are not accepted by webgl 2.0 context
Summary: GLSL 1.0 shaders are not accepted by webgl 2.0 context
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-06 01:51 PDT by Ryan Oswald
Modified: 2018-08-06 12:18 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Oswald 2018-08-06 01:51:12 PDT
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: " : #version required and missing.
Comment 1 Ryan Oswald 2018-08-06 12:18:18 PDT
This issue seems to be resolved in the latest nightly.