Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(615)

Unified Diff: src/compiler/SymbolTable.cpp

Issue 9738048: Merged EXT_frag_depth changes into dx11proto branch (Closed) Base URL: https://angleproject.googlecode.com/svn/branches/dx11proto
Patch Set: Fixed DX11 shaders with depth output Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/SymbolTable.h ('k') | src/compiler/glslang.y » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/SymbolTable.cpp
diff --git a/src/compiler/SymbolTable.cpp b/src/compiler/SymbolTable.cpp
index 1e34f1af4944400fbca94ea28cf7beab9b08791e..f6b6ab6f48f15948d25841da57fc1490eea05860 100644
--- a/src/compiler/SymbolTable.cpp
+++ b/src/compiler/SymbolTable.cpp
@@ -223,10 +223,8 @@ void TSymbolTableLevel::relateToOperator(const char* name, TOperator op)
void TSymbolTableLevel::relateToExtension(const char* name, const TString& ext)
{
for (tLevel::iterator it = level.begin(); it != level.end(); ++it) {
- if (it->second->isFunction()) {
- TFunction* function = static_cast<TFunction*>(it->second);
- if (function->getName() == name)
- function->relateToExtension(ext);
- }
+ TSymbol* symbol = it->second;
+ if (symbol->getName() == name)
+ symbol->relateToExtension(ext);
}
}
« no previous file with comments | « src/compiler/SymbolTable.h ('k') | src/compiler/glslang.y » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b