|
|
|
Lines 773-788
static GrGLInterface* CreateGrGLInterfac
|
Link Here
|
|---|
|
| 773 |
if (context->IsGLES()) { |
773 |
if (context->IsGLES()) { |
| 774 |
i->fStandard = kGLES_GrGLStandard; |
774 |
i->fStandard = kGLES_GrGLStandard; |
| 775 |
} else { |
775 |
} else { |
| 776 |
i->fStandard = kGL_GrGLStandard; |
776 |
i->fStandard = kGL_GrGLStandard; |
| 777 |
} |
777 |
} |
| 778 |
|
778 |
|
| 779 |
GrGLExtensions extensions; |
779 |
GrGLExtensions extensions; |
| 780 |
if (!extensions.init(i->fStandard, glGetString_mozilla, NULL, glGetIntegerv_mozilla)) { |
780 |
if (!extensions.init(i->fStandard, glGetString_mozilla, NULL, glGetIntegerv_mozilla)) { |
|
|
781 |
delete i; |
| 781 |
return nullptr; |
782 |
return nullptr; |
| 782 |
} |
783 |
} |
| 783 |
|
784 |
|
| 784 |
i->fExtensions.swap(&extensions); |
785 |
i->fExtensions.swap(&extensions); |
| 785 |
|
786 |
|
| 786 |
// Core GL functions required by Ganesh |
787 |
// Core GL functions required by Ganesh |
| 787 |
i->fFunctions.fActiveTexture = glActiveTexture_mozilla; |
788 |
i->fFunctions.fActiveTexture = glActiveTexture_mozilla; |
| 788 |
i->fFunctions.fAttachShader = glAttachShader_mozilla; |
789 |
i->fFunctions.fAttachShader = glAttachShader_mozilla; |