Browse Source
video_core: Make global EmuWindow instance part of the base renderer class
video_core: Make global EmuWindow instance part of the base renderer class
Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer.nce_cpp
13 changed files with 54 additions and 64 deletions
-
4src/core/core.cpp
-
10src/core/core.h
-
8src/core/settings.cpp
-
14src/video_core/renderer_base.cpp
-
15src/video_core/renderer_base.h
-
7src/video_core/renderer_opengl/gl_rasterizer.cpp
-
5src/video_core/renderer_opengl/gl_rasterizer.h
-
26src/video_core/renderer_opengl/renderer_opengl.cpp
-
15src/video_core/renderer_opengl/renderer_opengl.h
-
7src/video_core/video_core.cpp
-
3src/video_core/video_core.h
-
2src/yuzu/main.cpp
-
2src/yuzu_cmd/yuzu.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue