aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/src/GrGpuFactory.cpp')
-rw-r--r--gpu/src/GrGpuFactory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu/src/GrGpuFactory.cpp b/gpu/src/GrGpuFactory.cpp
index c6f541c7bb..0e316a49ad 100644
--- a/gpu/src/GrGpuFactory.cpp
+++ b/gpu/src/GrGpuFactory.cpp
@@ -41,6 +41,12 @@ GrGpu* GrGpu::Create(GrEngine engine, GrPlatform3DContext context3D) {
return NULL;
}
}
+ if (!GrGLGetGLInterface()->validate(engine)) {
+#if GR_DEBUG
+ GrPrintf("Failed GL interface validation!");
+#endif
+ return NULL;
+ }
}
GrGpu* gpu = NULL;