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
0e39f492
Commit
0e39f492
authored
Nov 09, 2015
by
Corentin Wallez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Revert "renderergl_utils: Require explicit location qualifier for OpenGLES3"""
This reverts commit
24db8644
.
parent
26e3736f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
TranslatorGLSL.cpp
src/compiler/translator/TranslatorGLSL.cpp
+0
-6
renderergl_utils.cpp
src/libANGLE/renderer/gl/renderergl_utils.cpp
+0
-9
No files found.
src/compiler/translator/TranslatorGLSL.cpp
View file @
0e39f492
...
...
@@ -177,12 +177,6 @@ void TranslatorGLSL::writeExtensionBehavior(TIntermNode *root)
}
}
// GLSL ES 3 explicit location qualifiers need to use an extension before GLSL 330
if
(
getShaderVersion
()
>=
300
&&
getOutputType
()
<
SH_GLSL_330_CORE_OUTPUT
)
{
sink
<<
"#extension GL_ARB_explicit_attrib_location : require
\n
"
;
}
TExtensionGLSL
extensionGLSL
(
getOutputType
());
root
->
traverse
(
&
extensionGLSL
);
...
...
src/libANGLE/renderer/gl/renderergl_utils.cpp
View file @
0e39f492
...
...
@@ -539,15 +539,6 @@ void GenerateCaps(const FunctionsGL *functions, gl::Caps *caps, gl::TextureCapsM
LimitVersion
(
maxSupportedESVersion
,
gl
::
Version
(
2
,
0
));
}
// ES3 needs to support explicit layout location qualifiers, while it might be possible to
// fake them in our side, we currently don't support that.
if
(
!
functions
->
isAtLeastGL
(
gl
::
Version
(
3
,
3
))
&&
!
functions
->
hasGLExtension
(
"GL_ARB_explicit_attrib_location"
)
&&
!
functions
->
isAtLeastGLES
(
gl
::
Version
(
3
,
0
)))
{
LimitVersion
(
maxSupportedESVersion
,
gl
::
Version
(
2
,
0
));
}
// Extension support
extensions
->
setTextureExtensionSupport
(
*
textureCapsMap
);
extensions
->
elementIndexUint
=
functions
->
standard
==
STANDARD_GL_DESKTOP
||
...
...
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