dolphin/Source/Core/VideoBackends/Software
Pokechu22 4a2d3c83c7 Software: Implement GetSurfaceInfo()
Before, it used a fallback where it returned a default object, where the width and height were set to 0. Presenter::Initialize() used GetSurfaceInfo to set the backbuffer size, then used that size when initializing the on-screen UI (even for the software renderer, where the on-screen UI isn't currently present), which meant that ImGui got a window size of 0 and thus resulted in a failed assertion.

Although BindBackbuffer checks for size changes, it doesn't help because ImGui has already been initialized, and the size hasn't actually changed since initialization occured.

Fixes one aspect of https://bugs.dolphin-emu.org/issues/13172.
2023-03-02 11:08:49 -08:00
..
Clipper.cpp
Clipper.h
CMakeLists.txt
CopyRegion.h
EfbCopy.cpp
EfbCopy.h
EfbInterface.cpp
EfbInterface.h
NativeVertexFormat.h
Rasterizer.cpp
Rasterizer.h
SetupUnit.cpp
SetupUnit.h
SWBoundingBox.cpp
SWBoundingBox.h
SWGfx.cpp
SWGfx.h
SWmain.cpp
SWOGLWindow.cpp
SWOGLWindow.h
SWRenderer.cpp
SWRenderer.h
SWTexture.cpp
SWTexture.h
SWVertexLoader.cpp
SWVertexLoader.h
Tev.cpp
Tev.h
TextureCache.h
TextureEncoder.cpp
TextureEncoder.h
TextureSampler.cpp
TextureSampler.h
TransformUnit.cpp
TransformUnit.h
Vec3.h
VideoBackend.h