Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering failure with Closure #342

Closed
vv221 opened this issue Oct 8, 2024 · 2 comments
Closed

Rendering failure with Closure #342

vv221 opened this issue Oct 8, 2024 · 2 comments
Assignees

Comments

@vv221
Copy link

vv221 commented Oct 8, 2024

I am trying to run the Humble Bundle native Linux build for Closure (https://www.humblebundle.com/store/closure), and while it runs fine using a real SDL 1.2 library (1.2.15 from Debian Bookworm) it fails to render anything but a black screen with sdl12-compat (1.2.68 from Debian Sid).

The music is playing in the background, so the game itself seems to run. But nothing is rendered beside the black screen.

System details

  • Debian Trixie/Sid
  • sdl12-compat 1.2.68
  • SDL 2.30.8
@icculus icculus self-assigned this Oct 8, 2024
sulix added a commit to sulix/sdl12-compat that referenced this issue Oct 9, 2024
Closure uses Cg, and also generally doesn't play nicely with OpenGL
scaling, resulting in a black screen. Disabling OpenGL scaling lets the
game work properly, so add a quirk to do this by default.

Tested against the Humble Indie Bundle 7 build
(Closure-Linux-1.1-2012-12-28.sh), and it seems to work fine.
@sulix
Copy link
Contributor

sulix commented Oct 9, 2024

This seems to be another Cg game which breaks with OpenGL scaling.

It works fine with SDL12COMPAT_OPENGL_SCALING=0 set, so I've added a quirk in #343.

I did try the hacked Cg stuff in glx_wrapper, but it wasn't enough to get it working with OpenGL scaling (unlike, e.g., Braid), so I suspect there's something else going on, not just Cg, but since disabling OpenGL scaling works great here, there's no sense trying something more complicated anyway.

@sezero sezero closed this as completed in 6f0f603 Oct 9, 2024
@vv221
Copy link
Author

vv221 commented Oct 9, 2024

It works fine with SDL12COMPAT_OPENGL_SCALING=0 set, so I've added a quirk in #343.

Thanks for the workaround, it works nicely here while I wait for the next sdl12-compat release including this new quirk.

I did try the hacked Cg stuff in glx_wrapper

This is the first time I read about this. This is a preload shim I could use instead of a real libCg.so library with some games?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants