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
Fix OpenGL VSync #533
Fix OpenGL VSync #533
Conversation
|
@Sonicadvance1 shouldn't GLExtensions be fetching the address of this function? @dolphin-emu-bot rebuild |
|
We grab this extension down in MakeCurrent. |
|
Should this be merged in the meantime? Or should we just wait for the libepoxy? |
|
We already grab the function pointer. I don't know why it is NULL on Windows still. |
|
Should it be grabbed in ClearCurrent? It isn't grabbed in MakeCurrent as far as I can tell by the code. |
|
Must have been an error that it ended up in ClearCurrent, it was supposed to be in MakeCurrent. This is a proper fix |
|
Just rebase out those commits. |
|
I'd like to do that, but the text file just says noop |
|
Oh, right, your branch is called master. Try something like origin/master (or whatever your remote is called). HEAD~3 should also work (as its 3 commits back you'd want to edit) |
|
There, done. Goddamnit Git is hard |
|
Its not (really) hard, you just have to get familiar with it. You (c|sh)ould also fix the commit message ( |
|
hold on, that doesn't say anything either. |
|
Okay now |
|
Can someone check this? vsync hasn't worked in OGL in a good, well, 10 years (more like 1500 builds, but whatev) according to my exaggerated estimates. |
|
I don't want to put any more strain onto the buildbot so here you go: |
|
@dolphin-emu-bot rebuild |
|
I wrote about this issue in ClearCurrent/MakeCurrent a few months ago: https://code.google.com/p/dolphin-emu/issues/detail?id=7169#c10 |
@Anti-Ultimate As a side note: Since your PR only affected WGL, which is the Windows OpenGL interface, it will not affect any other OS. |
Hopefully this also works on Mac and Linux
The problem was that SwapInterval was always set to null and never changed. Because of that the error message popped up.