bug fix for glsl identity string
BUG=skia: Review URL: https://codereview.chromium.org/659313004
This commit is contained in:
parent
dc89ca56e6
commit
2813f34492
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user