diff options
Diffstat (limited to 'bench/benchmain.cpp')
-rw-r--r-- | bench/benchmain.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index c58d5b1e5f..b809c99cd8 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -464,15 +464,13 @@ int main (int argc, char * const argv[]) { reinterpret_cast<GrPlatform3DContext>(glctx.get()->gl()); context = GrContext::Create(kOpenGL_Shaders_GrEngine, ctx); if (NULL != context) { - GrPlatformSurfaceDesc desc; - desc.reset(); + GrPlatformRenderTargetDesc desc; desc.fConfig = kRGBA_8888_GrPixelConfig; desc.fWidth = contextWidth; desc.fHeight = contextHeight; desc.fStencilBits = 8; - desc.fPlatformRenderTarget = glctx.get()->getFBOID(); - desc.fSurfaceType = kRenderTarget_GrPlatformSurfaceType; - rt = static_cast<GrRenderTarget*>(context->createPlatformSurface(desc)); + desc.fRenderTargetHandle = glctx.get()->getFBOID(); + rt = context->createPlatformRenderTarget(desc); if (NULL == rt) { context->unref(); context = NULL; |