Skip to content
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

Imgui-SFML, Issue with running Imgui-SFML opengl error #273

Open
LoDestino opened this issue Feb 19, 2024 · 1 comment
Open

Imgui-SFML, Issue with running Imgui-SFML opengl error #273

LoDestino opened this issue Feb 19, 2024 · 1 comment

Comments

@LoDestino
Copy link

LoDestino commented Feb 19, 2024

When I run the following code, code here , I can't seem to get it working and it produces this error,


"An internal OpenGL call failed in RenderTarget.cpp(504).
Expression:
glMatrixMode(GL_PROJECTION)
Error description:
GL_INVALID_ENUM
An unacceptable value has been specified for an enumerated argument."

I have used my local windows debugger w/breakpoints, and to no avail it didn't pinpoint the problem, I rewrote code 15+ times, And also have tried both vcpkg and manually linking it with the headers locally installed without a package manager, yet no fixed result I tried almost everything, Like updating my graphics card, Installing SDKs, EVEN REINSTALLING WINDOWS 11. And Yes I used example code too.

@eliasdaler
Copy link
Contributor

Try building example_glfw_opengl2 or example_sdl2_opengl2 and see if they work for you.

Reading the GL spec, glMatrixMode should accept GL_PROJECTION - what GPU do you have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants