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
acdd70f4
Commit
acdd70f4
authored
Jun 07, 2013
by
Jamie Madill
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nested uniforms in interface blocks to have the proper API-visible names.
TRAC #22856 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Authored-by: Jamie Madill
parent
52660ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ProgramBinary.cpp
src/libGLESv2/ProgramBinary.cpp
+3
-3
No files found.
src/libGLESv2/ProgramBinary.cpp
View file @
acdd70f4
...
@@ -2398,6 +2398,7 @@ void ProgramBinary::defineUniformBlockMembers(const sh::ActiveUniforms &uniforms
...
@@ -2398,6 +2398,7 @@ void ProgramBinary::defineUniformBlockMembers(const sh::ActiveUniforms &uniforms
for
(
unsigned
int
uniformIndex
=
0
;
uniformIndex
<
uniforms
.
size
();
uniformIndex
++
)
for
(
unsigned
int
uniformIndex
=
0
;
uniformIndex
<
uniforms
.
size
();
uniformIndex
++
)
{
{
const
sh
::
Uniform
&
uniform
=
uniforms
[
uniformIndex
];
const
sh
::
Uniform
&
uniform
=
uniforms
[
uniformIndex
];
const
std
::
string
&
uniformName
=
(
prefix
.
empty
()
?
uniform
.
name
:
prefix
+
"."
+
uniform
.
name
);
if
(
!
uniform
.
fields
.
empty
())
if
(
!
uniform
.
fields
.
empty
())
{
{
...
@@ -2405,18 +2406,17 @@ void ProgramBinary::defineUniformBlockMembers(const sh::ActiveUniforms &uniforms
...
@@ -2405,18 +2406,17 @@ void ProgramBinary::defineUniformBlockMembers(const sh::ActiveUniforms &uniforms
{
{
for
(
unsigned
int
arrayElement
=
0
;
arrayElement
<
uniform
.
arraySize
;
arrayElement
++
)
for
(
unsigned
int
arrayElement
=
0
;
arrayElement
<
uniform
.
arraySize
;
arrayElement
++
)
{
{
const
std
::
string
uniformElementName
=
uniform
.
n
ame
+
arrayString
(
arrayElement
);
const
std
::
string
uniformElementName
=
uniform
N
ame
+
arrayString
(
arrayElement
);
defineUniformBlockMembers
(
uniform
.
fields
,
uniformElementName
,
blockIndex
,
blockInfoItr
,
blockUniformIndexes
);
defineUniformBlockMembers
(
uniform
.
fields
,
uniformElementName
,
blockIndex
,
blockInfoItr
,
blockUniformIndexes
);
}
}
}
}
else
else
{
{
defineUniformBlockMembers
(
uniform
.
fields
,
uniform
.
n
ame
,
blockIndex
,
blockInfoItr
,
blockUniformIndexes
);
defineUniformBlockMembers
(
uniform
.
fields
,
uniform
N
ame
,
blockIndex
,
blockInfoItr
,
blockUniformIndexes
);
}
}
}
}
else
else
{
{
const
std
::
string
&
uniformName
=
(
prefix
.
empty
()
?
uniform
.
name
:
prefix
+
"."
+
uniform
.
name
);
Uniform
*
newUniform
=
new
Uniform
(
uniform
.
type
,
uniform
.
precision
,
uniformName
,
uniform
.
arraySize
,
Uniform
*
newUniform
=
new
Uniform
(
uniform
.
type
,
uniform
.
precision
,
uniformName
,
uniform
.
arraySize
,
blockIndex
,
**
blockInfoItr
);
blockIndex
,
**
blockInfoItr
);
...
...
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