diff options
author | 2012-02-10 20:05:18 +0000 | |
---|---|---|
committer | 2012-02-10 20:05:18 +0000 | |
commit | 89ec61e33daa9cbac200d38f7c5bb8b88046999a (patch) | |
tree | b2c86f053b4e466828ae6e241b3d5d7656616188 /src/gpu/GrGpuFactory.cpp | |
parent | e55fd0f188a2b0b137ddfd9728da58481e2309ef (diff) |
Add GrGLContextInfo
Review URL: http://codereview.appspot.com/5653060/
git-svn-id: http://skia.googlecode.com/svn/trunk@3162 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpuFactory.cpp')
-rw-r--r-- | src/gpu/GrGpuFactory.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gpu/GrGpuFactory.cpp b/src/gpu/GrGpuFactory.cpp index c954c7a121..7d53e79624 100644 --- a/src/gpu/GrGpuFactory.cpp +++ b/src/gpu/GrGpuFactory.cpp @@ -39,15 +39,10 @@ GrGpu* GrGpu::Create(GrEngine engine, GrPlatform3DContext context3D) { #endif return NULL; } - if (!glInterface->validate()) { -#if GR_DEBUG - GrPrintf("Failed GL interface validation!\n"); -#endif - return NULL; + GrGLContextInfo ctxInfo(glInterface); + if (ctxInfo.isInitialized()) { + return new GrGpuGLShaders(ctxInfo); } - - return new GrGpuGLShaders(glInterface); - } else { - return NULL; } + return NULL; } |