Skip to content

Commit

Permalink
D3D9: fall back to SO_GOURAUD for SO_PHONG
Browse files Browse the repository at this point in the history
as most D3D9 implementations do anyway
  • Loading branch information
paroj committed Apr 8, 2023
1 parent 88b4c6f commit 58a7844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RenderSystems/Direct3D9/src/OgreD3D9Mappings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ namespace Ogre
{
case SO_FLAT:
return D3DSHADE_FLAT;
case SO_PHONG:
// phong is not supported in D3D9
OGRE_FALLTHROUGH;
case SO_GOURAUD:
return D3DSHADE_GOURAUD;
case SO_PHONG:
return D3DSHADE_PHONG;
}
return 0;
}
Expand Down

0 comments on commit 58a7844

Please sign in to comment.