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:
Henrik Rydgård committed 2018-06-01 21:16:07 +02:00
1 parent aadced94f5
commit c1d113e0e9
7 files changed
+19 -9

No files matched your search

+5 -1
View File
@@ -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;