Commit 408563b
Fix GL_WEBGL_video_texture shader compilation on OpenGL backend
When ESSL 100 shaders using GL_WEBGL_video_texture run on the
OpenGL backend (desktop GL), compilation fails with "no function
with name 'texture2D'" error.
Root cause: textureVideoWEBGL() was always translated to texture2D()
regardless of the target GLSL version. When targeting GLSL 130+,
texture2D() doesn't exist (replaced by texture()), causing the error.
Bug: angleproject:466412253
Change-Id: I1480e30c863bdfaf3bfc06dc85ff22ec4e96b55d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/7252470
Reviewed-by: Shahbaz Youssefi <[email protected]>
Reviewed-by: Yuxin Hu <[email protected]>
Commit-Queue: Yuxin Hu <[email protected]>1 parent eb9614e commit 408563b
File tree
4 files changed
+10
-6
lines changed- src
- compiler/translator/glsl
- tests
4 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
0 commit comments