You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is only valid for surface creation. We also call this fuction when sizeChanged event fired but we never check if the result was a SUCCESS in that case
In demo app
<SwapChainPanel x:Name="swapChainPanel" Visibility="Collapsed" >
float customResolutionScale = 1.0f;
mRenderSurface = mOpenGLES->CreateSurface(swapChainPanel, nullptr, &customResolutionScale);
Run application after this two steps, you will get an exception "Can't create surface"
The problem is that in function
HRESULT SwapChainPanelNativeWindow::scaleSwapChain(const SIZE &windowSize, const RECT &clientRect)
we do not check size fo zero and get NaN in here
Size renderScale = {(float)windowSize.cx / (float)clientRect.right, (float)windowSize.cy / (float)clientRect.bottom};
The text was updated successfully, but these errors were encountered: