From 8ec454998943a234d9f945120222d7140e8c90bb Mon Sep 17 00:00:00 2001 From: Fewnity Date: Thu, 17 Oct 2024 21:29:43 +0200 Subject: [PATCH] Fix culling on rsx samples --- samples/graphics/rsxtest/source/main.cpp | 2 +- samples/graphics/rsxtest_dl/source/main.cpp | 2 +- samples/graphics/rsxtest_flip/source/main.cpp | 2 +- samples/graphics/rsxtest_spu/source/main.cpp | 2 +- samples/graphics/rsxtest_tile/source/main.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/graphics/rsxtest/source/main.cpp b/samples/graphics/rsxtest/source/main.cpp index 0a08bc23..0b488ac8 100644 --- a/samples/graphics/rsxtest/source/main.cpp +++ b/samples/graphics/rsxtest/source/main.cpp @@ -451,7 +451,7 @@ void drawFrame() GCM_CLEAR_S | GCM_CLEAR_Z); - rsxSetZMinMaxControl(context,0,1,1); + rsxSetZMinMaxControl(context,GCM_FALSE, GCM_TRUE, GCM_FALSE); for(i=0;i<8;i++) rsxSetViewportClip(context,i,display_width,display_height); diff --git a/samples/graphics/rsxtest_dl/source/main.cpp b/samples/graphics/rsxtest_dl/source/main.cpp index 857ad392..055e2709 100644 --- a/samples/graphics/rsxtest_dl/source/main.cpp +++ b/samples/graphics/rsxtest_dl/source/main.cpp @@ -449,7 +449,7 @@ void drawFrame() GCM_CLEAR_S | GCM_CLEAR_Z); - rsxSetZMinMaxControl(gGcmContext,GCM_FALSE, GCM_TRUE, GCM_TRUE); + rsxSetZMinMaxControl(gGcmContext,GCM_FALSE, GCM_TRUE, GCM_FALSE); for(i=0;i<8;i++) rsxSetViewportClip(gGcmContext,i,display_width,display_height); diff --git a/samples/graphics/rsxtest_flip/source/main.cpp b/samples/graphics/rsxtest_flip/source/main.cpp index 193efcf3..a7e5b72e 100644 --- a/samples/graphics/rsxtest_flip/source/main.cpp +++ b/samples/graphics/rsxtest_flip/source/main.cpp @@ -449,7 +449,7 @@ void drawFrame() GCM_CLEAR_S | GCM_CLEAR_Z); - rsxSetZMinMaxControl(gGcmContext,0,1,1); + rsxSetZMinMaxControl(gGcmContext,GCM_FALSE, GCM_TRUE, GCM_FALSE); for(i=0;i<8;i++) rsxSetViewportClip(gGcmContext,i,display_width,display_height); diff --git a/samples/graphics/rsxtest_spu/source/main.cpp b/samples/graphics/rsxtest_spu/source/main.cpp index e165aa02..b2a50443 100644 --- a/samples/graphics/rsxtest_spu/source/main.cpp +++ b/samples/graphics/rsxtest_spu/source/main.cpp @@ -245,7 +245,7 @@ void drawFrame() GCM_CLEAR_S | GCM_CLEAR_Z); - rsxSetZMinMaxControl(context,0,1,1); + rsxSetZMinMaxControl(context,GCM_FALSE, GCM_TRUE, GCM_FALSE); for(i=0;i<8;i++) rsxSetViewportClip(context,i,display_width,display_height); diff --git a/samples/graphics/rsxtest_tile/source/main.cpp b/samples/graphics/rsxtest_tile/source/main.cpp index 6f0ddae5..c5789800 100644 --- a/samples/graphics/rsxtest_tile/source/main.cpp +++ b/samples/graphics/rsxtest_tile/source/main.cpp @@ -449,7 +449,7 @@ void drawFrame() GCM_CLEAR_S | GCM_CLEAR_Z); - rsxSetZMinMaxControl(gGcmContext,0,1,1); + rsxSetZMinMaxControl(gGcmContext,GCM_FALSE, GCM_TRUE, GCM_FALSE); for(i=0;i<8;i++) rsxSetViewportClip(gGcmContext,i,display_width,display_height);