Skip to content

Commit

Permalink
The return type of imageSize(gimageCube) is int2, not int3
Browse files Browse the repository at this point in the history
BUG=angleproject:1442

Change-Id: I18bee163e7c7ce159cd23d6136486c49b7d9ec94
Reviewed-on: https://chromium-review.googlesource.com/414950
Reviewed-by: Olli Etuaho <oetuaho@nvidia.com>
Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
  • Loading branch information
xhcao authored and Commit Bot committed Nov 28, 2016
1 parent c031272 commit fb02830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Intel Corporation
Qiankun Miao
Bryan Bernhart
Yunchao He
Xinghua Cao

Klarälvdalens Datakonsult AB
Milian Wolff
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/translator/Initialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void InsertBuiltInFunctions(sh::GLenum type, ShShaderSpec spec, const ShBuiltInR
symbolTable.insertBuiltIn(ESSL3_1_BUILTINS, int2, "imageSize", gimage2D);
symbolTable.insertBuiltIn(ESSL3_1_BUILTINS, int3, "imageSize", gimage3D);
symbolTable.insertBuiltIn(ESSL3_1_BUILTINS, int3, "imageSize", gimage2DArray);
symbolTable.insertBuiltIn(ESSL3_1_BUILTINS, int3, "imageSize", gimageCube);
symbolTable.insertBuiltIn(ESSL3_1_BUILTINS, int2, "imageSize", gimageCube);

//
// Depth range in window coordinates
Expand Down

0 comments on commit fb02830

Please sign in to comment.