mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
When creating temp framebuffers for download, size them using bufferWidth/Height instead of width/height.
Or maybe we should make sure to only download within the width/height by adding more clamps at the beginning of ReadFramebufferToMemory but seems more dangerous. Plus some minor things. Should help #11113
This commit is contained in:
1 parent
aadced94f5
commit
c1d113e0e9
7 files changed
+19
-9
No files matched your search
+5
-1
@@ -691,6 +691,9 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) {
|
||||
colorPipeline = g_draw->CreateGraphicsPipeline(colorDesc);
|
||||
texColorPipeline = g_draw->CreateGraphicsPipeline(texColorDesc);
|
||||
|
||||
_assert_(colorPipeline);
|
||||
_assert_(texColorPipeline);
|
||||
|
||||
// Release these now, reference counting should ensure that they get completely released
|
||||
// once we delete both pipelines.
|
||||
inputLayout->Release();
|
||||
@@ -1159,7 +1162,8 @@ bool NativeIsRestarting() {
|
||||
}
|
||||
|
||||
void NativeShutdown() {
|
||||
screenManager->shutdown();
|
||||
if (screenManager)
|
||||
screenManager->shutdown();
|
||||
delete screenManager;
|
||||
screenManager = nullptr;
|
||||
|
||||
|
||||
Reference in new issue
Block a user