Fix OSD
This commit is contained in:
parent
10044d53a4
commit
cce3a31af0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue