This commit is contained in:
WaluigiWare64 2021-05-30 20:37:38 +01:00 committed by Rayyan Ansari
parent 10044d53a4
commit cce3a31af0
3 changed files with 5 additions and 5 deletions

View File

@ -460,7 +460,7 @@ void DrawGL(QOpenGLExtraFunctions* f, float w, float h)
f->glBindTexture(GL_TEXTURE_2D, item.GLTexture);
f->glUniform2i(uOSDPos, kOSDMargin, y);
f->glUniform2i(uOSDSize, item.Width, item.Height);
f->glUniform2f(uOSDSize, item.Width, item.Height);
f->glDrawArrays(GL_TRIANGLES, 0, 2*3);
y += item.Height;

View File

@ -26,7 +26,7 @@ const char* kScreenVS_OSD = kShaderHeader R"(
uniform vec2 uScreenSize;
uniform ivec2 uOSDPos;
uniform ivec2 uOSDSize;
uniform vec2 uOSDSize;
uniform float uScaleFactor;
in vec2 vPosition;

View File

@ -534,7 +534,7 @@ void EmuThread::run()
{
FrontBufferLock.lock();
if (FrontBufferReverseSyncs[FrontBuffer ^ 1])
glWaitSync(FrontBufferReverseSyncs[FrontBuffer ^ 1], 0, GL_TIMEOUT_IGNORED);
epoxy_glWaitSync(FrontBufferReverseSyncs[FrontBuffer ^ 1], 0, GL_TIMEOUT_IGNORED);
FrontBufferLock.unlock();
}
#endif
@ -548,8 +548,8 @@ void EmuThread::run()
if (videoRenderer == 1)
{
if (FrontBufferSyncs[FrontBuffer])
glDeleteSync(FrontBufferSyncs[FrontBuffer]);
FrontBufferSyncs[FrontBuffer] = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
epoxy_glDeleteSync(FrontBufferSyncs[FrontBuffer]);
FrontBufferSyncs[FrontBuffer] = epoxy_glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
// this is hacky but this is the easiest way to call
// this function without dealling with a ton of
// macro mess