Bug 716859 - Avoid jump crossing variable declaration (GCC bustage fix)

This commit is contained in:
Jacek Caban 2013-02-26 12:06:43 +01:00
Родитель edf78018f2
Коммит df4644d20c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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))