-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Black screen when using Mesa drivers (?) #14
Comments
They do work on another machine (CentOS) though: > cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
> cargo run --example texture
Compiling tetra v0.1.2 (/mill3d/users/jan/git/github/tetra)
Finished dev [unoptimized + debuginfo] target(s) in 4.58s
Running `target/debug/examples/texture`
OpenGL Device: Quadro 4000/PCIe/SSE2
OpenGL Driver: 4.6.0 NVIDIA 390.59
OpenGL Vendor: NVIDIA Corporation
Swap Interval: VSync |
Thank you for the report! I'll look into it further this evening - my work laptop has Intel integrated graphics too, so hopefully I'll be able to reproduce the issue on there. Failing that, might need to spin up a Debian VM or something... |
I wasn't able to replicate on my laptop, but I think I understand why - from the looks of your log output, it looks like your drivers might be using OpenGL 3.0? I've been targeting 3.2, so perhaps I've used an incompatible feature somewhere... I'll try to force it into 3.0 mode on my machine and see if it breaks :) |
Dang, no luck - I set the context version to 3.0 on my laptop, and it still seems to work fine for me. Perhaps it's something to do with the Mesa drivers? |
Let me try something on my side and I will report back ... # maybe this will help?
apt-get upgrade mesa-common-dev |
I upgraded a couple of things (Mesa + Intel Graphics related) but it didn't fix the problem: OpenGL Device: Mesa DRI Intel(R) Iris 6100 (Broadwell GT3)
OpenGL Driver: 3.0 Mesa 18.2.5
OpenGL Vendor: Intel Open Source Technology Center
Swap Interval: VSync |
Anyway, don't worry, I can work on the CentOS box. Close if you want ... |
Strange! Thanks for the report, anyway - I'll close it for now, but hopefully I'll get chance to play around on Debian at some point and see if I can replicate. Hope you have better luck on your CentOS box! |
I'm re-opening this, as @VictorKoenders seems to be having a similar issue on Ubuntu. |
Also doesn't seem to work with sdl2's |
@VictorKoenders My suspicion is that the issue might be due to me using |
A friend found this resource: https://stackoverflow.com/a/21567167
|
Ah, the joys of OpenGL... Anyway, the shader changes don't add any extra complexity/lose us any functionality, so I've merged them into master :) |
After installing the
-lSDL2
dependency:I can compile and run the examples (on Debian), but they all render black without error messages:
The text was updated successfully, but these errors were encountered: