Improve overlay format handling

This commit is contained in:
Cameron Gutman committed 2022-05-28 22:48:23 -05:00
1 parent e103f6c9b6
commit f8a6012c3a
4 files changed
+6 -13

No files matched your search

@@ -816,6 +816,7 @@ void D3D11VARenderer::notifyOverlayUpdated(Overlay::OverlayType type)
// Create a texture with our pixel data
SDL_assert(!SDL_MUSTLOCK(newSurface));
SDL_assert(newSurface->format->format == SDL_PIXELFORMAT_ARGB8888);
D3D11_TEXTURE2D_DESC texDesc = {};
texDesc.Width = newSurface->w;