glhf
glhf copied to clipboard
sprite draw is suddenly broken for me
Everything was fine 3 days ago, but now both my exercises with pixel engine and glhf demo show the same problem: no errors, windows is created and even filled with Clear color, but no sprites is drawed. Window updates and closes just fine, draw method is called, but no evidence off sprite
what i'm doing wrong?
win7 x64, Nvidia last drivers. Sry for mb stupid question!
I'm sorry, you need to provide more information. Source code, picture, screenshots would all help.
code: I run github.com/faiface/glhf/examples/demo/main.go and got this: https://ibb.co/bRjOAx same with any pixel/examples/...
if i use something like
for !win.Closed() {
win.Clear(color.RGBA{byte(rand.Intn(255)),byte(rand.Intn(255)),byte(rand.Intn(255)),255})
sprite.Draw(win, pixel.IM)
sprite.Draw(win, pixel.IM.Moved(win.Bounds().Center()))
win.Update()
}
Clear works fine and update background color each frame, but no sprite in angle, nor in center.
on other computers everything is fine, so the lib is ok. Same demo.exe works fine on other comp and don't work here, so it's not about local repo and compiling options. On this comp all was good 4 days ago, so my video card is ok and drivers supported OpenGL well. So i can't undestand the reason of this weird bug and what is brocken
Alright, I acknowledge your problem, but as I can't reproduce it and have no idea what causes it, I can't directly help you. You'll have to investigate the issue yourself. When you find a solution, I'll be very happy to fix the problem.
Hello again, just reporting in: Windows recovery doesn't help. But! this is a real heisenbug, on this screenshot you see five instances of smoke.exe runned: https://ibb.co/inR8hn 2 work well, 3 are blind window. this is not work-blind-work-blind-... or any predictable pattern. I continue to investigate
P.S. same problem not only on my comp. I encourage everybody to compile pixel/samples/smoke and check, mb we can reproduce situation. If you do, please report both positive and negative results
That's really weird. Thanks a lot for the investigation! Hope you'll be successful!
Sad, it seems my understanding of GL and ways to test it are not enough to solve this. The problem occurs on GForce 8400gs Win 7x64 PC and on Gforce 8400M GS Win 7x64 notebook. Drivers ver. 342.01.
Hope someone else could solve this! Good Luck Have Fun!
P.S. if you have any ideas but can't reproduce the error, i will be happy to run you test code or something
I'm sorry to hear that, I also hope someone can solve this. Unfortunately, I have zero ideas.