summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/renderer
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/renderer
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/renderer')
-rwxr-xr-xgfx/angle/src/libANGLE/renderer/ProgramImpl.h4
-rwxr-xr-xgfx/angle/src/libANGLE/renderer/d3d/ProgramD3D.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gfx/angle/src/libANGLE/renderer/ProgramImpl.h b/gfx/angle/src/libANGLE/renderer/ProgramImpl.h
index 45ff0a05a..e62623a8d 100755
--- a/gfx/angle/src/libANGLE/renderer/ProgramImpl.h
+++ b/gfx/angle/src/libANGLE/renderer/ProgramImpl.h
@@ -86,6 +86,10 @@ class ProgramImpl : angle::NonCopyable
GLint components,
const GLfloat *coeffs) = 0;
+ virtual void assignUniformBlockRegisters()
+ {
+ }
+
protected:
const gl::ProgramState &mState;
};
diff --git a/gfx/angle/src/libANGLE/renderer/d3d/ProgramD3D.h b/gfx/angle/src/libANGLE/renderer/d3d/ProgramD3D.h
index 88fe4020d..01f3973c5 100755
--- a/gfx/angle/src/libANGLE/renderer/d3d/ProgramD3D.h
+++ b/gfx/angle/src/libANGLE/renderer/d3d/ProgramD3D.h
@@ -231,6 +231,7 @@ class ProgramD3D : public ProgramImpl
const GLfloat *value);
void setUniformBlockBinding(GLuint uniformBlockIndex, GLuint uniformBlockBinding) override;
+ void assignUniformBlockRegisters() override;
const UniformStorageD3D &getVertexUniformStorage() const { return *mVertexUniformStorage; }
const UniformStorageD3D &getFragmentUniformStorage() const { return *mFragmentUniformStorage; }
@@ -350,7 +351,6 @@ class ProgramD3D : public ProgramImpl
void initAttribLocationsToD3DSemantic();
void reset();
- void assignUniformBlockRegisters();
void initUniformBlockInfo();
size_t getUniformBlockInfo(const sh::InterfaceBlock &interfaceBlock);