diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-07 01:58:39 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-07 01:58:39 +0000 |
commit | b87d2b5c2a5b9981c4da905a299a513920170391 (patch) | |
tree | 5966ad6559fc010bb17cb1d2ed9c3cddf151f90f /gm | |
parent | 6d9adaec78f4c25c16c6f925f6c619955ae7f099 (diff) |
Revert r2611 until windows gm can be debugged
git-svn-id: http://skia.googlecode.com/svn/trunk@2612 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gmmain.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index f437906068..f2ab7033fc 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -647,13 +647,15 @@ int main(int argc, char * const argv[]) { reinterpret_cast<GrPlatform3DContext>(glContext.get()->gl()); gGrContext = GrContext::Create(kOpenGL_Shaders_GrEngine, ctx); if (NULL != gGrContext) { - GrPlatformRenderTargetDesc desc; + GrPlatformSurfaceDesc desc; + desc.reset(); desc.fConfig = kRGBA_8888_GrPixelConfig; desc.fWidth = maxW; desc.fHeight = maxH; desc.fStencilBits = 8; - desc.fRenderTargetHandle = glContext.get()->getFBOID(); - rt = gGrContext->createPlatformRenderTarget(desc); + desc.fPlatformRenderTarget = glContext.get()->getFBOID(); + desc.fSurfaceType = kRenderTarget_GrPlatformSurfaceType; + rt = static_cast<GrRenderTarget*>(gGrContext->createPlatformSurface(desc)); if (NULL == rt) { gGrContext->unref(); gGrContext = NULL; |