зеркало из https://github.com/mozilla/gecko-dev.git
Bug 716859 - Avoid jump crossing variable declaration (GCC bustage fix)
This commit is contained in:
Родитель
edf78018f2
Коммит
df4644d20c
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче