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

Check Platform.glFoo in headless #1834

Open
sprunk opened this issue Dec 18, 2024 · 0 comments
Open

Check Platform.glFoo in headless #1834

sprunk opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working Lua API

Comments

@sprunk
Copy link
Collaborator

sprunk commented Dec 18, 2024

Platform.glHaveGLSL is defined to true, this is incorrect since headless doesn't actually have GLSL:

LuaPushNamedBool(L, "glHaveGLSL", true);

The task is to figure out which entries are incorrect this way, and fix them. I assume that in headless, all the glHaveFoo and glSupportFoo should be false, availableVideoModes should probably be empty, and numDisplays should probably be 0. Double-check this.

Stuff like glVersion probably stays as-is. Perhaps there could be a Platform.isHeadless or Engine.isHeadless as well?

@sprunk sprunk added bug Something isn't working Lua API labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Lua API
Projects
None yet
Development

No branches or pull requests

1 participant