HurricanGame / Hurrican

Freeware jump and shoot game created by Poke53280, based on the Turrican game series by Manfred Trenz
61 stars 22 forks source link

Black screen on Raspberry Pi 4 #53

Closed vanfanel closed 11 months ago

vanfanel commented 11 months ago

Hi there again, @drfiemost

Since you did some final touches to the shader effect splitting code yesterday, I have rebuilt latest sources on the Pi4, and now, if I add --crt, -C or any of the CRT effects (like --colorbleed, --scanlines, etc) I get a black screen.

With no CRT effects, the game runs normally.

drfiemost commented 11 months ago

Weird, it works fine here, both with GL2 and GL3. Can you provide a log in debug mode?

vanfanel commented 11 months ago

@drfiemost Of course, but what do you mean debug mode? A log from an executable built with -DCMAKE_BUILD_TYPE=Debug? Or is it something else? I can't see a debug option with hurrican --help

drfiemost commented 11 months ago

A log from an executable built with -DCMAKE_BUILD_TYPE=Debug?

This, it will print the shader source and show possible errors. But before recompiling you can check the file data/shaders/100/shader_render.frag and see if it's corrupted. The original for reference: https://github.com/HurricanGame/Hurrican/blob/master/Hurrican/data/shaders/100/shader_render.frag

vanfanel commented 11 months ago

@drfiemost Ok, re-copying the data dir from git made it work as expected... How could corruption have happened? Strange thing. And worrying too.

drfiemost commented 11 months ago

Good. Maybe I've messed up by force pushing some changes, should be more careful in the future.