-
Notifications
You must be signed in to change notification settings - Fork 138
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
compile ok but cannot run under ubuntu22 #139
Comments
Hi, can you please provide some more information? For instance, did you reproduce this on a native Linux machine or a virtual machine? I found these issues in other projects that seem related:
A suggestion from these threads I saw was to set the color bits from 32 to 24, effectively setting the alpha bits from 8 to 0. swapChainDesc.colorBits = 24; Please let me know if that fixes the issue. I am only set up with Linux VMs at the moment. |
I use native Linux machine. (base) zhangfq@ThinkStation-Tiny:~/active-resource/LLGL/build_linux/build$ ./Example_C99_HelloTriangle
|
This error indicates that the vertex shader (and likely any other file) was not loaded correctly. Have you launched the project via the Also did you try to change the color bits as suggested? |
If use RunExamplesLinux.sh: selected renderer: OpenGL |
Example 7 (MultiContext) doesn't work correctly in my VM either, but all the other examples do (I have an Ubuntu 24 in VirtualBox with OpenGL 4.1 support only). |
-- -ms=0 is useless. The same error with all other example. |
Have you tried the source modification I recommended earlier? Can you add this line after ExampleBase.cpp:523: swapChainDesc.colorBits = 24; |
Of course. |
So the HelloTriangle example works on your machine, right? This is the only example that doesn't use a stencil and depth buffer (see Example.cpp:62). Maybe you can try a few different settings in ExampleBase. I would start with |
selected renderer: OpenGL
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 46
Current serial number in output stream: 46
The text was updated successfully, but these errors were encountered: