gecko0307 / dagon

3D game engine for D
https://gecko0307.github.io/dagon
Other
332 stars 30 forks source link

OpenGL error 1282: GL_INVALID_OPERATION #72

Open smarchevsky opened 2 years ago

smarchevsky commented 2 years ago

Trying to run of Fedora Linux. Thows a message every frame:

OpenGL error 1282: GL_INVALID_OPERATION
OpenGL error: type = 0x824c, severity = 0x9146, message = GL_INVALID_OPERATION in glDrawElements
OpenGL error 1282: GL_INVALID_OPERATION
OpenGL error: type = 0x824c, severity = 0x9146, message = GL_INVALID_OPERATION in glDrawElements

Application runs 10 FPS

smarchevsky commented 2 years ago

As well on Windows

$ dub init --type=dagon
Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86_64.
dagon:init-exec 0.12.1: target for configuration "application" is up to date.
To force a rebuild of up-to-date targets, run again with --force.
Running C:/Users/staseg/AppData/Local/dub/packages/dagon-0.12.1/dagon/init-exec/dagon_init-exec.exe
Successfully created an empty project in 'E:\OtherPersonalProjects\dagon'.
Package successfully created in .

$ dub build
Detected dependency cycle: dagon->dagon

Don't know, how to fix.

gecko0307 commented 2 years ago

Do you have an AMD card? I'm on Nvidia, so it's usually hard to debug compatibility issues. It might be a linux driver bug as well.

gecko0307 commented 2 years ago

In #77 I've addressed some of the AMD issues, maybe this one is also resolved by now? And for the circular dependency, currently I don't see a way to replicate that, I honestly see that kind of dub error for the first time.