Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
f4cb0e12
Commit
f4cb0e12
authored
Jun 24, 2013
by
Nicolas Capens
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unconditionally supporting derivative functions in ES3.
TRAC #23377 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Nicolas Capens
parent
e0ba27a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Initialize.cpp
src/compiler/Initialize.cpp
+4
-4
No files found.
src/compiler/Initialize.cpp
View file @
f4cb0e12
...
@@ -591,15 +591,15 @@ void IdentifyBuiltIns(ShShaderType type, ShShaderSpec spec,
...
@@ -591,15 +591,15 @@ void IdentifyBuiltIns(ShShaderType type, ShShaderSpec spec,
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"dFdx"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"dFdx"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"dFdy"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"dFdy"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"fwidth"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToExtension
(
ESSL1_BUILTINS
,
"fwidth"
,
"GL_OES_standard_derivatives"
);
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"dFdx"
,
EOpDFdx
);
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"dFdy"
,
EOpDFdy
);
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"fwidth"
,
EOpFwidth
);
}
}
break
;
break
;
default:
break
;
default:
break
;
}
}
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"dFdx"
,
EOpDFdx
);
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"dFdy"
,
EOpDFdy
);
symbolTable
.
relateToOperator
(
ESSL3_BUILTINS
,
"fwidth"
,
EOpFwidth
);
// Finally add resource-specific variables.
// Finally add resource-specific variables.
switch
(
type
)
{
switch
(
type
)
{
case
SH_FRAGMENT_SHADER
:
case
SH_FRAGMENT_SHADER
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment