From df4644d20cf04985c6803869ef4988a25e35bfdb Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 26 Feb 2013 12:06:43 +0100 Subject: [PATCH] Bug 716859 - Avoid jump crossing variable declaration (GCC bustage fix) --- gfx/gl/SharedSurfaceANGLE.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/gl/SharedSurfaceANGLE.cpp b/gfx/gl/SharedSurfaceANGLE.cpp index 00ca634e381e..eea5bce043e7 100644 --- a/gfx/gl/SharedSurfaceANGLE.cpp +++ b/gfx/gl/SharedSurfaceANGLE.cpp @@ -216,6 +216,7 @@ SharedSurface_ANGLEShareHandle::Create(GLContext* gl, ID3D10Device1* d3d, // On failure, goto CleanUpIfFailed. // If |failed|, CleanUpIfFailed will clean up and return null. bool failed = true; + HRESULT hr; // Off to the races! if (!egl->fQuerySurfacePointerANGLE( @@ -230,7 +231,7 @@ SharedSurface_ANGLEShareHandle::Create(GLContext* gl, ID3D10Device1* d3d, // Ok, we have a valid PBuffer with ShareHandle. // Let's attach it to D3D. - HRESULT hr = d3d->OpenSharedResource(shareHandle, + hr = d3d->OpenSharedResource(shareHandle, __uuidof(ID3D10Texture2D), getter_AddRefs(texture)); if (FAILED(hr))