mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Implement running the game in the background on the pause screen. Fix some bugs.
This commit is contained in:
1 parent
9f01661774
commit
e8f70594a4
25 files changed
+123
-120
No files matched your search
@@ -311,7 +311,7 @@ void GPUDriverTestScreen::CreateViews() {
|
||||
anchor->Add(back);
|
||||
}
|
||||
|
||||
void GPUDriverTestScreen::DiscardTest() {
|
||||
void GPUDriverTestScreen::DiscardTest(UIContext &dc) {
|
||||
using namespace UI;
|
||||
using namespace Draw;
|
||||
if (!discardWriteDepthStencil_) {
|
||||
@@ -440,7 +440,6 @@ void GPUDriverTestScreen::DiscardTest() {
|
||||
rasterNoCull->Release();
|
||||
}
|
||||
|
||||
UIContext &dc = *screenManager()->getUIContext();
|
||||
Draw::DrawContext *draw = dc.GetDrawContext();
|
||||
|
||||
static const char * const writeModeNames[] = { "Stencil+Depth", "Stencil", "Depth" };
|
||||
@@ -529,10 +528,9 @@ void GPUDriverTestScreen::DiscardTest() {
|
||||
dc.Flush();
|
||||
}
|
||||
|
||||
void GPUDriverTestScreen::ShaderTest() {
|
||||
void GPUDriverTestScreen::ShaderTest(UIContext &dc) {
|
||||
using namespace Draw;
|
||||
|
||||
UIContext &dc = *screenManager()->getUIContext();
|
||||
Draw::DrawContext *draw = dc.GetDrawContext();
|
||||
|
||||
if (!adrenoLogicDiscardPipeline_) {
|
||||
@@ -629,17 +627,13 @@ void GPUDriverTestScreen::ShaderTest() {
|
||||
dc.Flush();
|
||||
}
|
||||
|
||||
|
||||
void GPUDriverTestScreen::render(ScreenRenderMode mode) {
|
||||
using namespace Draw;
|
||||
UIScreen::render(mode);
|
||||
|
||||
void GPUDriverTestScreen::DrawForeground(UIContext &dc) {
|
||||
switch (tabHolder_->GetCurrentTab()) {
|
||||
case 0:
|
||||
DiscardTest();
|
||||
DiscardTest(dc);
|
||||
break;
|
||||
case 1:
|
||||
ShaderTest();
|
||||
ShaderTest(dc);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user