mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Not pretty, but with this, you can switch MSAA level at runtime.
This commit is contained in:
1 parent
28e1b532bd
commit
8a3e92aa38
12 files changed
+40
-15
No files matched your search
@@ -2878,11 +2878,7 @@ static void DoRelease(T *&obj) {
|
||||
obj = nullptr;
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::DeviceLost() {
|
||||
DestroyAllFBOs();
|
||||
|
||||
presentation_->DeviceLost();
|
||||
|
||||
void FramebufferManagerCommon::ReleasePipelines() {
|
||||
for (int i = 0; i < ARRAY_SIZE(reinterpretFromTo_); i++) {
|
||||
for (int j = 0; j < ARRAY_SIZE(reinterpretFromTo_); j++) {
|
||||
DoRelease(reinterpretFromTo_[i][j]);
|
||||
@@ -2899,9 +2895,16 @@ void FramebufferManagerCommon::DeviceLost() {
|
||||
DoRelease(draw2DPipelineDepth_);
|
||||
DoRelease(draw2DPipeline565ToDepth_);
|
||||
DoRelease(draw2DPipeline565ToDepthDeswizzle_);
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::DeviceLost() {
|
||||
DestroyAllFBOs();
|
||||
|
||||
presentation_->DeviceLost();
|
||||
draw2D_.DeviceLost();
|
||||
|
||||
ReleasePipelines();
|
||||
|
||||
draw_ = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user