Skip to content

GL_INVALID_ENUM error on transition to the first preset #823

@hack-s

Description

@hack-s

Please confirm the following points:

  • This report is NOT about the Android apps in the Play Store
  • I have searched the project page to check if the issue was already reported

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 via glGetError() 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.

Metadata

Metadata

Assignees

Labels

bugThe issue is (potentially) a bug.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions