Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partially fix depth issues in multiple games #2580

Merged
merged 1 commit into from
Jul 2, 2013
Merged

Partially fix depth issues in multiple games #2580

merged 1 commit into from
Jul 2, 2013

Conversation

dbz400
Copy link
Contributor

@dbz400 dbz400 commented Jul 1, 2013

This should be a better fix for depth issues .It renders depth bit correctly in those games that have issues problem . #2579

  1. Ridge Race 2 (no car invisible issue)
    screen00032
  2. Gundam AGE Universe (character visible)
    screen00031
  3. Saint Seiya Omega (character visible)
    screen00035

@hrydgard
Copy link
Owner

hrydgard commented Jul 1, 2013

Looks promising, how well tested is it?

@dbz400
Copy link
Contributor Author

dbz400 commented Jul 1, 2013

Tested around 6-8 games and seems to be no broken.

glstate.depthTest.enable();
glstate.depthFunc.set(GL_ALWAYS);
glstate.depthWrite.set(GL_TRUE);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole block is seemingly equivalent to

glstate.depthTest.enable();
glstate.depthFunc.set(GL_ALWAYS); 
glstate.depthWrite.set((depthMask || !gstate.isDepthTestEnabled()) ? GL_TRUE : GL_FALSE); 

Which is almost the same as before, except that depthWrite is not set to false if depth testing is disabled, even if the depth mask bit is not set. Interesting. Does disabling depth testing really implicitly enable depth writing?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems odd, but I wouldn't be that surprised actually. The PSP GPU is quite quirky.

hrydgard added a commit that referenced this pull request Jul 2, 2013
Partially fix depth issues in multiple games
@hrydgard hrydgard merged commit 405ac23 into hrydgard:master Jul 2, 2013
@hrydgard
Copy link
Owner

hrydgard commented Jul 2, 2013

Let's try it.

@solarmystic
Copy link
Contributor

@raven02

This pull request caused abnormal graphical behaviour to appear in Final Fantasy I and 2 #2595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants