summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/Program.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-07-24 19:48:25 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-07-24 19:48:25 +0200
commitdd234f025a2154553de23d4514da6669ef8f2851 (patch)
tree2ffe44a43e84debe71029baf84296037b28e61fe /gfx/angle/src/libANGLE/Program.cpp
parenta81919b573eec06e399403a9e0e390a0e330f4b8 (diff)
downloadUXP-dd234f025a2154553de23d4514da6669ef8f2851.tar
UXP-dd234f025a2154553de23d4514da6669ef8f2851.tar.gz
UXP-dd234f025a2154553de23d4514da6669ef8f2851.tar.lz
UXP-dd234f025a2154553de23d4514da6669ef8f2851.tar.xz
UXP-dd234f025a2154553de23d4514da6669ef8f2851.zip
ANGLE: Initialize uniform blocks before detaching shaders
This resolves #668
Diffstat (limited to 'gfx/angle/src/libANGLE/Program.cpp')
-rwxr-xr-xgfx/angle/src/libANGLE/Program.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/angle/src/libANGLE/Program.cpp b/gfx/angle/src/libANGLE/Program.cpp
index 7f4226da1..49a0f9a33 100755
--- a/gfx/angle/src/libANGLE/Program.cpp
+++ b/gfx/angle/src/libANGLE/Program.cpp
@@ -679,6 +679,12 @@ Error Program::link(const ContextState &data)
gatherInterfaceBlockInfo();
+ // Because we do lazy init in assignUniformBlockRegisters,
+ // we must initialize them when linking shaders,
+ // otherwise, we will have no shaders for getting uniform blocks
+ // information from shaders when doing draw calls.
+ mProgram->assignUniformBlockRegisters();
+
mLinked = true;
return NoError();
}