-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
GL_INVALID_ENUM error on transition to the first preset #823
Comments
Here is my workaround for this issue, not sure if that is the preferred way to fix it though. |
This error is almost always happening because the OpenGL context isn't properly set up, as these OpenGL calls are the first ones being executed when initializing projectM. To make sure this doesn't happen because of such an issue, please check:
|
To be more precise, the issue is happening when transitioning from the idle preset I confirmed this issue is present (on my system) when using the latest
Note requires and additional include: |
I have a hard time verifying that it is in fact using GLX on X11. It links the right libs, and the only EGL lib is for Wayland I believe.
Looking at
And
|
Thanks for the information! Found and fixed the issue adding proper emptiness checks to CopyTexture, as presets don't have an output texture allocated before rendering the first frame. This may happen to other copy operations in future additions, so having this in the CopyTexture class made more sense to me. This will also fix issues seen with other integrations, which probably suffered from this bug as well. We'll push out a 4.1.2 bugfix release for this one, as this is an important fix. |
Please confirm the following points:
Affected Project
libprojectM (including the playlist library)
Affected Version
master branch
Operating Systems and Architectures
Linux (x86_64)
Build Tools
Compiler: GNU GCC
Additional Project, OS and Toolset Details
c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Type of Defect
Specific bug in projectM code (please link the code in question)
Log Output
No response
Describe the Issue
GL_INVALID_ENUM
error present in OpenGL context viaglGetError()
on transition to the first/initial preset when the output texture from the current preset (initialized empty at that point) is attempted to being copied.The error is caused by this line when
m_target = 0
:https://github.com/projectM-visualizer/projectm/blob/master/src/libprojectM/Renderer/Texture.cpp#L58
The error does not cause any functional issue as far as I can tell, it just trips my error handler.
The text was updated successfully, but these errors were encountered: