diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-28 07:38:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-28 13:03:47 +0000 |
commit | 7f1b4f8cc39cfe5717db2a4a16bfd9e23cd49c50 (patch) | |
tree | dd5be3acefae18a7942a5bf5604143de3c50a028 /tools/gpu/GrTest.cpp | |
parent | 37b501d2c9d25c5ecff772aac1f28878ab49025e (diff) |
Fix issues related to backend texture/rendertarget creation
Change-Id: I640ea5f316e9e4aba778f450655e74636199e0b1
Reviewed-on: https://skia-review.googlesource.com/76440
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools/gpu/GrTest.cpp')
-rw-r--r-- | tools/gpu/GrTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 83e5aa7f3b..47f98a6c20 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -90,8 +90,9 @@ GrBackendRenderTarget CreateBackendRenderTarget(GrBackend backend, int width, in } #endif case kOpenGL_GrBackend: { - GrGLFramebufferInfo* glInfo = (GrGLFramebufferInfo*)(handle); - return GrBackendRenderTarget(width, height, sampleCnt, stencilBits, config, *glInfo); + GrGLFramebufferInfo glInfo; + glInfo.fFBOID = handle; + return GrBackendRenderTarget(width, height, sampleCnt, stencilBits, config, glInfo); } case kMock_GrBackend: // fall through default: |