Skip to content

glGetTextureParameteri can't be passed GL_TEXTURE_TARGET #90

@TheTypholorian

Description

@TheTypholorian

Description
I have been getting a weird opengl error on my newer computers:
OpenGL debug message: id=1280, source=API, type=ERROR, severity=HIGH, message='Error has been generated. GL error GL_INVALID_ENUM in (null): (ID: 173538523) Generic error'
It happens every frame, and it's pretty annoying. Printing the stacktrace in the debug callback shows this:
Stacktrace
Looking at that code, I then see this line of code that's the problem: glGetTextureParameteri(texture, GL_TEXTURE_TARGET). Looking at the opengl documentation, I see that GL_TEXTURE_TARGET is not a valid parameter, as the error message confirms. This happens on some of my computers and not on others, it's likely when the device supports that method that the error occurs.

To Reproduce

  1. Acquire a device that supports glGetTextureParameteriv
  2. Run the game (and join a world)
  3. Check the console

System Information

  • Veil Version: Same error in 1.0.0.85 and 2.5.1 (latest)
  • Minecraft Version: 1.21.1
  • Loader & Loader Version: Fabric 0.16.14
  • Operating System: Windows 11
  • CPU: Intel Core Ultra 9 288V
  • GPU: Intel Arc Graphics
  • RAM: 32GB

Additional Context
Very annoying for development because it spams the console and it's harder to log things

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions