RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1k stars 175 forks source link

Fixed Pipeline=Enabled Causes RoR to crash after launching RoR #1297

Closed disloyalpick closed 6 years ago

disloyalpick commented 7 years ago

Title says it all

Steps to reproduce...

  1. Go to Render Subsystem settings under Direct3D9 and Switch Fixed Render Pipeline to "NO"

  2. Launch RoR.

  3. Crash RoR.

Not sure what its purpose is, but I just thought I would report.

m6pv0u8

ohlidalp commented 7 years ago

🤣 Nice catch, thanks for reporting.

The "Fixed Render Pipeline" switch essentially disables old-style built-in rendering capabilities of the graphics card/driver and forces the application to submit custom shaders for everything. Recommended reading: https://gamedevelopment.tutsplus.com/articles/the-end-of-fixed-function-rendering-pipelines-and-how-to-move-on--cms-21469

This crash itself is caused by missing file "MyGUI_VP.glsles", which is a "vertex program" (aka "vertex shader") for OpenGL ES. Apparently MyGUI has it's own shaders for the case of disabled "Fixed Render Pipeline", and RoR doesn't ship those. Loading GLSLES shader under DirectX renderer doesn't really make sense, but I guess MyGUI simply always loads everything.