Fix GLInterfaceValidation test after "Remove GrContextFactory::getGLContext"

Fix GLInterfaceValidation test crash after "Remove
GrContextFactory::getGLContext" commit.

Review URL: https://codereview.chromium.org/1464283002
This commit is contained in:
kkinnunen 2015-11-23 05:28:08 -08:00 committed by Commit bot
parent 5931922997
commit 621895f5a5

View File

@ -17,7 +17,7 @@ DEF_GPUTEST(GLInterfaceValidation, reporter, factory) {
GrContextFactory::GLContextType glCtxType = (GrContextFactory::GLContextType)i;
// this forces the factory to make the context if it hasn't yet
GrContextFactory::ContextInfo* contextInfo = factory->getContextInfo(glCtxType);
SkGLContext* glCtx = contextInfo->fGLContext;
SkGLContext* glCtx = contextInfo ? contextInfo->fGLContext : nullptr;
// We're supposed to fail the NVPR context type when we the native context that does not
// support the NVPR extension.