mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
GPU: Fix texture handling on framebuf detach.
We were never creating/recreating the texture, so we ended up with null. Caused all sorts of problems.
This commit is contained in:
1 parent
17de6ad2d8
commit
3f48e446b6
2 files changed
+4
No files matched your search
@@ -345,6 +345,7 @@ bool GLRenderManager::CopyFramebufferToMemorySync(GLRFramebuffer *src, int aspec
|
||||
}
|
||||
|
||||
void GLRenderManager::CopyImageToMemorySync(GLRTexture *texture, int mipLevel, int x, int y, int w, int h, Draw::DataFormat destFormat, uint8_t *pixels, int pixelStride) {
|
||||
_assert_(texture);
|
||||
GLRStep *step = new GLRStep{ GLRStepType::READBACK_IMAGE };
|
||||
step->readback_image.texture = texture;
|
||||
step->readback_image.mipLevel = mipLevel;
|
||||
|
||||
Reference in new issue
Block a user