Index: src/gpu/GrContextFactory.cpp |
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp |
index 00ae1226e8441c5885619b1b6b1c19a6df2bfb19..465c91076448d902128fde8c2f50f727c4c0e3b8 100755 |
--- a/src/gpu/GrContextFactory.cpp |
+++ b/src/gpu/GrContextFactory.cpp |
@@ -148,6 +148,11 @@ GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType typ |
return ContextInfo(); |
} |
} |
+ if (kRequireSRGBSupport_GLContextOptions & options) { |
+ if (!grCtx->caps()->srgbSupport()) { |
+ return ContextInfo(); |
+ } |
+ } |
Context& context = fContexts.push_back(); |
context.fGLContext = glCtx.release(); |