Comments (14)
Let me try something on my side and I will report back ...
# maybe this will help?
apt-get upgrade mesa-common-dev
from tetra.
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 :)
from tetra.
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
from tetra.
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...
from tetra.
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 :)
from tetra.
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?
from tetra.
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
from tetra.
Anyway, don't worry, I can work on the CentOS box. Close if you want ...
from tetra.
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!
from tetra.
I'm re-opening this, as @VictorKoenders seems to be having a similar issue on Ubuntu.
from tetra.
Ubuntu 18.10
libsdl2-dev: 2.0.8+dfsg1-4ubuntu1
OpenGL Device: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
OpenGL Driver: 3.0 Mesa 18.2.2
OpenGL Vendor: Intel Open Source Technology Center
Swap Interval: VSync
Also doesn't seem to work with sdl2's bundled
feature. I fear it's an openGL issue.
from tetra.
@VictorKoenders My suspicion is that the issue might be due to me using #version 330
stuff in my GLSL - could you try running the examples on the simplified-glsl
branch that I've just pushed?
from tetra.
from tetra.
A friend found this resource: https://stackoverflow.com/a/21567167
What they do not tell you, but indirectly imply ("Some drivers don't support all the features required in
OpenGL 3.3."), is that in the last official release of Mesa (10.0), GL 3.3 only works on Intel hardware. This
is one of the joys of Intel's close involvement with the Mesa project. If you want reliable GL 3.3 support
in any form on AMD hardware, you should use fglrx (the proprietary AMD driver) for the time being.
from tetra.
Related Issues (20)
- crash with "Segmentation fault: 11" message when multiple gamepads connected. HOT 13
- Improve performance docs
- Include inner error when printing `TetraError::PlatformError` HOT 1
- Switch to SDL_GameControllerRumble for gamepad rumble
- Setting the swap interval at startup fails on some platforms HOT 4
- Input monitoring permissions are requested on MacOS Big Sur HOT 5
- Tetra fails to build with edition = "2021" or resolver = "2" HOT 2
- Tetra 0.7 HOT 4
- Add an option to generate premultiplied font atlases HOT 3
- The moethods Shader::from_vertex_string and Shader::from_fragment_string won't build
- tetra on Windows selects an integrated GPU when a discrete GPU is available HOT 1
- Mesh non deterministic glitch HOT 2
- Integrate ImGui (imgui-rs) into Tetra as a early GUI solution
- "static-link" doesn't work for "sdl2 0.35.2" on OSX
- Instancing using instanced vertex attributes HOT 3
- Pass DrawParams as a reference to the Texture's draw method
- Window is always fullscreen on Windows HOT 2
- Play sounds has a chance to cause an error on 0.8 HOT 1
- add alignment option for text HOT 2
- Drawing many Text instances severely degrades performance on macOS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tetra.