-
Notifications
You must be signed in to change notification settings - Fork 93
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
error: GLSL 3.30 is not supported. #451
Comments
Yes, it has something to do with your intel card. |
Looks like i have the same error on my notebook.
My video: |
Yep: Version: 2.1 Mesa 10.1.3 |
That would be awesome :) |
@zero17333 do you use windows 10? seems like windows 10 has limited support for integrated graphic drivers. some drivers have only have max opengl 1.5 support |
@trollworkout i'm pretty sure it won't even build on windows. Intel supports opengl 3 only since Sandy Bridge (6th gen of Intel HD) Anyways, support for gl 2.1 based cards should be done by the end of week, i hope. |
@trollworkout Actually I'm using Antergos Linux with a Haswell i3. It is odd how OpenGL is lower than I thought. @isage Thank you for your effort |
@zero17333 can you provide log from console? |
I'll just give you the relevant stuff: [INFO] [RENDERER] SDL_CreateWindow 640x480x32 - [OK] [INFO] Looking for Falltergeist data files [WARNING] [RENDERER] Failed to compile shader: '0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES [INFO] [RENDERER] Loading shader /home/bryan/Documents/falltergeist/data/shaders/sprite.fp [WARNING] [RENDERER] Failed to compile shader: '0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES [INFO] [RENDERER] Loading shader /home/bryan/Documents/falltergeist/data/shaders/font.fp [WARNING] [RENDERER] Failed to compile shader: '0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES [INFO] [RENDERER] Loading shader /home/bryan/Documents/falltergeist/data/shaders/animation.fp [WARNING] [RENDERER] Failed to compile shader: '0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES [INFO] [RENDERER] Loading shader /home/bryan/Documents/falltergeist/data/shaders/tilemap.fp [WARNING] [RENDERER] Failed to compile shader: '0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES [INFO] [RENDERER] [OK] |
It might be fixed in Falltergeist itself. "It's very probably because you don't specifically ask the OpenGL implementation (in this case mesa) for Core Profile because only Haswell OpenGL core profile supports GLSL 3.30, as shown in this Haswell glxinfo dump: " http://darmawan-salihun.blogspot.fi/2015/03/glsl-330-in-intel-haswell-cpu.html |
Yep, that's what i thought. Strange, tho, hasswell should support 3.3 on linux. |
Thinking again SDL might be the place to fix the issue. |
@teepean we specifically ask for core profile. That's why we fall back to 2.1 (in latest master) on anything lower 3.2, because 3.1 is rare, and 3.0 shaders are deprecated in core profile. |
@zero17333 can you also post output of glxinfo | grep OpenGL |
Hm, that might be, however sdl/mesa bug. As we dont specify version, only that we want core context, mesa can still choose lowest, meh. I'll see what i can do, but first i need confirmation with info above |
Did someone change something between when I first posted this and now? It seems to working now for some reason after git pull and rebuilding. The first time I tried this it didn't work after doing it 7-8 times. AFTER the rebuild it worked immediately and I can start the game |
Yes, as I've said, we added render path for opengl < 3.2, but i still need that glxinfo, because you should get ogl 3.3 on your system |
glxinfo | grep OpenGL [21:06:44] |
Yep, that's definitely mesa-related bug. I'll look into it. |
@zero17333 could you try adding after https://github.com/falltergeist/falltergeist/blob/master/src/Graphics/Renderer.cpp#L107 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 0); And see, it you'll get 3.3 profile instead of 3.0 |
I added those lines between SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); and SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); and I got: [CRITICAL] Init OpenGL - [FAIL] It was definitely in Renderer.cpp and it was on lines 108 and 109 |
Yep, i've already tested this myself. Anyway, after #457 is merged you should finally get 3.2 context on mesa. |
I don't why this is happening. Maybe it has something to do with my Intel card. Maybe it's a bug?
The text was updated successfully, but these errors were encountered: