dwrite: Handle failure when getting texture bounds (Coverity).
This commit is contained in:
parent
1684a0b6bd
commit
3ffe6ab0bb
@ -401,6 +401,10 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
|
|||||||
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_ALIASED_1x1, &bounds);
|
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_ALIASED_1x1, &bounds);
|
||||||
if (FAILED(hr) || IsRectEmpty(&bounds)) {
|
if (FAILED(hr) || IsRectEmpty(&bounds)) {
|
||||||
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &bounds);
|
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &bounds);
|
||||||
|
if (FAILED(hr)) {
|
||||||
|
WARN("GetAlphaTextureBounds() failed, 0x%08x\n", hr);
|
||||||
|
return hr;
|
||||||
|
}
|
||||||
texturetype = DWRITE_TEXTURE_CLEARTYPE_3x1;
|
texturetype = DWRITE_TEXTURE_CLEARTYPE_3x1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user