bug fix for glsl identity string

BUG=skia:

Review URL: https://codereview.chromium.org/659313004
This commit is contained in:
joshualitt 2014-10-17 10:54:04 -07:00 committed by Commit bot
parent dc89ca56e6
commit 2813f34492

View File

@ -76,7 +76,11 @@ const char* GrGetGLSLVersionDecl(const GrGLContextInfo& info) {
return "#version 300 es\n";
} else {
SkASSERT(kGL_GrGLStandard == info.standard());
return "#version 330 compatibility\n";
if (info.caps()->isCoreProfile()) {
return "#version 330\n";
} else {
return "#version 330 compatibility\n";
}
}
case k310es_GrGLSLGeneration:
SkASSERT(kGLES_GrGLStandard == info.standard());