minetest / minetest

Minetest is an open source voxel game-creation platform with easy modding and game creation
https://www.minetest.net/
Other
10.62k stars 2k forks source link

Shader failed to generate #12613

Open oong819 opened 2 years ago

oong819 commented 2 years ago
Minetest version
Tested on: 5.5.0, 5.5.1
OS / Hardware

Operating system: Android 6.0.1 (API level 23) CPU: Mediatek MT6734

GPU model: Mali OpenGL version: ES 3.1

Summary

The shader is bugged in the first time open the game

the world is black and a lot of error text appear

video: https://youtu.be/mWZ2RR1R__k

Steps to reproduce

Install Minetest (yes, this bug only appear first time) Open the game Set video driver to OGLES2 Turn on shader open a world or join a server

rollerozxa commented 2 years ago

Can reproduce (Nokia 5.4), happens on 5.5 if you switch from OGLES1 to OGLES2, enable shaders and then join a world without first restarting Minetest (assumedly tries to compile OGLES2 shaders on an OGLES1 context... which does not work). Does this still occur after you've restarted Minetest?

Worth noting the same reproduction steps crashes the game on 5.6.0-dev and starting it again works of course since it's been restarted.

oong819 commented 2 years ago

its only happen in first time open the game

oong819 commented 2 years ago

this probally a duplicate of something like setting dont be saved in first time open the game

rollerozxa commented 2 years ago

This would be user error. Changing the video driver is an advanced setting and the description for the setting states a restart is required for the setting to take effect.

The real issue would seem to be that the shader settings are immediately being enabled in the main menu settings tab since it checks for the setting's value rather than what Irrlicht video driver is actually running at the moment.

sfan5 commented 6 days ago

Needs re-testing.

oong819 commented 5 days ago

As i remember, i did the all the thing in reproduce steps in 5.7.0 (normal thing i do every time i re-install Minetest) and it's completely normal, but i will not trust my memory, but i also ran out of storage space to install Minetest