Fix harmless signed/unsigned comparison warning in Direct2D code
Cast D2DERR_RECREATE_TARGET, which is not of HRESULT type, to it to avoid gcc warnings.
This commit is contained in:
committed by
Vadim Zeitlin
parent
99573ecddd
commit
0b1bc6b0b1
@@ -3345,7 +3345,7 @@ void wxD2DContext::Flush()
|
||||
{
|
||||
HRESULT result = m_renderTargetHolder->Flush();
|
||||
|
||||
if (result == D2DERR_RECREATE_TARGET)
|
||||
if (result == (HRESULT)D2DERR_RECREATE_TARGET)
|
||||
{
|
||||
ReleaseDeviceDependentResources();
|
||||
}
|
||||
|
Reference in New Issue
Block a user