commit | bf2a46941e8fdebfcd24ea8f7184779021898225 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 04 12:35:39 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 04 12:35:39 2011 +0000 |
tree | 1fcabf7bad39c8a0e0b49010a82a707ad74a2eff | |
parent | 68ac0dfce295df6a4f9e5c62a933b4c1d429410e [diff] [blame] |
Add all ES2 glUniform functions to GrGLInterface. Add interface validation for fixed pipe or shader pipe use. Review URL: http://codereview.appspot.com/4435082/ git-svn-id: http://skia.googlecode.com/svn/trunk@1234 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuFactory.cpp b/gpu/src/GrGpuFactory.cpp index c6f541c..0e316a4 100644 --- a/gpu/src/GrGpuFactory.cpp +++ b/gpu/src/GrGpuFactory.cpp
@@ -41,6 +41,12 @@ return NULL; } } + if (!GrGLGetGLInterface()->validate(engine)) { +#if GR_DEBUG + GrPrintf("Failed GL interface validation!"); +#endif + return NULL; + } } GrGpu* gpu = NULL;