mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +00:00
1fc0f569de
Polygon topology wasn't really supported and would only work on OpenGL on drivers that haven't removed it. As an alternative, this PR makes all cases of polygon topology use triangle fan. The topology type and transform feedback type have not been changed, as I don't think geo shader/tfb should be used with polygons. The OpenGL spec states: Only convex polygons are guaranteed to be drawn correctly by the GL. For convex polygons, triangle fan is equivalent to polygon. I imagine this is probably how it works on device, as this get-out-of-jail-free card is too enticing to pass up. This fixes the stat display in Pokemon S/V. |
||
---|---|---|
.. | ||
Helper | ||
Image | ||
Queries | ||
BackgroundContextWorker.cs | ||
Buffer.cs | ||
Constants.cs | ||
Debugger.cs | ||
DrawTextureEmulation.cs | ||
EnumConversion.cs | ||
FormatInfo.cs | ||
FormatTable.cs | ||
Framebuffer.cs | ||
Handle.cs | ||
HwCapabilities.cs | ||
IOpenGLContext.cs | ||
OpenGLRenderer.cs | ||
PersistentBuffers.cs | ||
Pipeline.cs | ||
Program.cs | ||
ResourcePool.cs | ||
Ryujinx.Graphics.OpenGL.csproj | ||
Sync.cs | ||
VertexArray.cs | ||
Window.cs |