Allow GLSL construction of matrix from matrix, starting with version 120, and always for ES shaders.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20544 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
f792295e35
commit
71fca670f3
@ -9,6 +9,9 @@ float precision;
|
|||||||
in vec4 i;
|
in vec4 i;
|
||||||
out vec4 o;
|
out vec4 o;
|
||||||
|
|
||||||
|
uniform mat4x2 m;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
mat2x3 m23 = mat2x3(m);
|
||||||
}
|
}
|
||||||
|
@ -587,8 +587,8 @@ bool TParseContext::constructorErrorCheck(int line, TIntermNode* node, TFunction
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (matrixInMatrix && !type->isArray()) {
|
if (matrixInMatrix && !type->isArray()) {
|
||||||
error(line, "constructing matrix from matrix", "constructor", "(reserved)");
|
profileRequires(line, ENoProfile, 120, 0, "constructing matrix from matrix");
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overFull) {
|
if (overFull) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user